Posts

Showing posts from September 28, 2018

Getting fontspec Fonts with pdfLaTeX

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I have to make a document, which was originally written in LuaLaTeX, compatible for both pdfLaTeX and LuaLaTeX. Everything works except that the fonts differ. How can I force pdfLaTeX/fontenc to use the same fonts as fontspec? Minimal example (omitted ifluatex to avoid clutter): documentclass[fontsize=11pt]scrreprt % usepackagefontspec usepackagelmodern usepackage[T1]fontenc usepackage[utf8]inputenc begindocument chapterChapter sectionSection Text with some formulas: $a=1$. enddocument By using lmodern , the fonts of the text seem to almost coincide, but the math fonts differ: # pdffonts output for pdflatex with lmodern, fontenc and inputenc: name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- ZGMFNK+LMSans10-Bold Type 1 Custom yes yes no 4 0 YIMXCY+LMRoman10-Regular Type 1 Custom yes yes no 5 0 GXEVRM+LMMathItalic10-Regular Type

Is this communication I²C?

Image
Clash Royale CLAN TAG #URR8PPP up vote 4 down vote favorite 1 I need to decode communication between two devices, but I have no information about these devices. All I know is that four wires are needed (GND, VCC and two wires of communication). I suspect that it is I²C communication. I'm trying to decode it with the oscilloscope decoding tool, but I'm not quite sure about it. I can not identify elements of I²C communication appropriately when I visually check the waveforms. Looking at the waveforms I made the following assumptions, and maybe someone can help. These were my assumptions: Everything leads to believe that the clock is the blue signal and the data is the red signal. The clock seems to be inverted because its idle state is not at high level. I'm not sure if the data signal is also inverted, but it seems to be. Are my assumptions correct? In the last figure, the figure with the number 5 indicated in a circle, and there is a part of the signal. I