Articles of pdftex

What controls the encoding of the LaTeX log file – and how to change it?

I have a LaTeX document in UTF-8 encoding: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} äääääääääääääääööööööööööööööööööööööüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüääääääääääääääääääääääääääääääääääüüüüüüüüüüüüüü \end{document} When compiling this with pdflatex on MacOS X in a terminal using an UTF-8 locale, the (expected) overfull \hbox warning comes out in Latin1 encoding – in the terminal as well as in the log file: This is pdfTeX, Version 3.1415926-2.5-1.40.14 […]

How to get the pdf of a compiled table only

I would like to generate a pdf document by compiling a table using pdflatex. For that I checked this but the result there is a complete a4 page. is there a way to generate a pdf that has the size of the table. For example let’s assume we have the following table saved in tab1.tex […]

Change page, section, figure, etc identifier avoiding duplicates

Imagine that you want to build a report composed by several papers. Before each paper the titlepage should be displayed. Also, the page number, section number, figure number, etc shall always be reset before each paper starts. With my solution and using pdftex driver to compile, I got several pdfTeX warning (ext4): destination with the […]

Fake small caps with UTF-8 on pdfTeX

I am using arev package for a scientific LaTeX article (compiling using pfdlatex) and would like to use small caps for certrain proper names. On the internet I found a code \def\fauxschelper#1#2\relax{% \ifnum`#1>“\ifnum`#1<`\{\scalebox{.87}[.79]{\uppercase{#1}}\else#1\fi\else#1\fi% \ifx\relax#2\relax\else\fauxschelper#2\relax\fi} \newcommand\fauxsc[1]{\fauxschelper#1\relax\relax} which looks kind of nice, but doesn’t work when I try to use unicode characters with UTF-8 encoding. It seems […]

Custom name with \pgfmathsetmacro

I have a function that have parameters that need to calculate large numbers at some point in that function, I want to use pgfmath to cumulate the data (since counters don’t have enough range): … \pgfkeys{/pgf/fpu=true} \pgfmathsetmacro\csname Total#1\endcsname{\csname Total#1\endcsname + #2} %does not work probably missing a \expandafter \pgfmathsetmacro\TotalContractH{\TotalContractH + #2} \pgfmathsetmacro\temp{#2 * #3} \pgfmathsetmacro\TotalContractC{\TotalContractC […]

Filesize command amount dependent?

When writing a cv I decided to separate tex file from content. I copied the content to a csv file in order to load it with datatool. But this greatly increases the size of the PDF: Complete content directly in tex code. Size: 101 Kb. Externalize the content to an csv file. Size: 5.093 kb. […]

Differences in texlive implementations

I run the same input file in two computers, one having TeX Live/Debian under Ubuntu, the other with TeX Live/opensuse under SUSE 11.1. The second one fails to handle the file properly. In particular, it cannot resolve references of type \ref{label} in the list of figures and (probably therefore) it cannot break lines properly. Reading […]

How to use TeX Gyre Pagella in pdflatex for arXiv

Since arXiv still doesn’t seem to support LuaLaTeX, I need to make my document work with pdfLaTeX instead. The only LuaLaTeX-specific stuff is \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} If I want the document to look as close to the one I compile with LuaLaTeX as possible, what do I need to […]

How do I make pdfLaTeX accept a graphics file with a period in its name?

Possible Duplicate: \includegraphics: Dots in filename Many of my graphics files have periods in their names. This causes a problem with pdflatex. For example, if I want to include the graphics file this.or.that.pdf I get this error: ! LaTeX Error: Unknown graphics extension: .or.that.pdf. Is there a way around this other than renaming all my […]

How to draw a dashed line from a node without connecting to any other node or a shape in tikz

I want to generate hidden markov models using tikz. I have successfully generated nodes and connected them. But i want to generate dashed lines generating below the node to an empty space like this . I tried to make it work using this code: \begin{tikzpicture}[->,>=stealth’,shorten >=1pt,auto,node distance=2.8cm, semithick,scale=1.5,transform shape] \tikzstyle{every state}=[fill=red,draw=none,text=white] \node[state] (A) {$S_1$}; \node[state] […]