Tag Info

Hot answers tagged

12

At first you don't need an equivalent for fontenc but for inputenc. You should (like inputenc) make the non-ascii chars active and map them to suitable commands. E.g. in an 8-bit encoded file you could do something like this: %OT1-encoded font \catcode`\ä=13 \defä{\"a} Räuber \bye When using a T1-encoded font life is a bit easier, as a lot of chars are ...


5

Use \linenumbers and \nolinenumbers instead of \internallinenumbers \documentclass{article} \usepackage{paracol} \usepackage{lineno} \usepackage{lipsum} \setlength{\columnsep}{4em} \begin{document} \linenumbers \begin{paracol}{2} \vspace{10pt} \lipsum[1-3] \switchcolumn \lipsum[1-3] \end{paracol} \nolinenumbers \end{document}


3

The LaTeX team have a regression suite for LaTeX itself which is also available to others from CTAN as l3build. This is based not on doing binary comparison of PDF files but rather on comparing results at the 'TeX end' using the .log file. This can be done by deliberately logging programming results ('Does this macro produce the correct tokens?') or by ...


3

You can define a short one that matches the longer ones and fits quite well on the i like this: \newcommand{\shortmacron}{% \makebox[0pt][l]{% \rule[1.3ex]{0.2em}{0.035em}% }% } Another way is to define a smart version that automatically adapts it’s length. I also set this one a little lower to minimize the conflict with the drop serif of the ...


2

The screen shot shows that xelatex is used, but the graphics/color driver pdftex.def was requested. Likely some graphics or color package (e.g. graphics, graphicx, color, xcolor) was loaded with option pdftex. This is wrong, because pdfTeX ≠ XeTeX. Remove the driver option pdftex. Usually XeTeX or pdfTeX in PDF mode are detected automatically (or ...


2

Full minimal example please. This compiles just fine under TeX Live 2015. \documentclass[a4paper]{beamer} \usepackage{algorithm,algpseudocode} \begin{document} \begin{frame} \begin{algorithm}[H] \caption{Text Summarization Algorithm}\label{euclid} \begin{algorithmic}[1] \Procedure{Summary Construction}{}\newline \textbf{Input:} ...


2

Some juggles for keeping the ABNT class happy; the initials of the author's name must be treated specially because of how the bibliography style chops them. Here I use filecontents just to keep the example self-contained. \RequirePackage{filecontents} \begin{filecontents*}{\jobname.bib} @Article{russian2002, Title = {\textcyrillic{Эпидемиология ...


1

\x takes the string length as last value: \StrLen{#1}[\mylen]; \foreach \x in {1,...,\mylen} { Then \second \pgfmathtruncatemacro{\second}{\x+1}; is larger than the string length, but \StrChar{#1}{\y}[\numB]; \y is empty now, because #1 does not provide any digits after the string end and the empty \numB is invalid in the multiplication: ...


1

A more updated answer; the best shot for switching to Preview.app is, in viewPDF.py, to set: if s == "Darwin": viewercmd = ["open", "-a", "Preview"] With this, after compiling, you should be able to execute window.run_command("view_pdf") in the console and it should open the generated pdf with Preview. Then, in makePDF.py, change: if ...


1

Assuming that it is, in fact, the first image which is created by LaTeX and the first by Word, I take it that the following would be an adequate MWE (actually, not quite minimal but almost): \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{setspace} \doublespacing \usepackage{lipsum} \begin{document} ...



Only top voted, non community-wiki answers of a minimum length are eligible