pdflatex

What are the relative merits of pdflatex?

Not sure this is a programming question, but we use LaTeX for all our API documentation and user documentation, so I hope it will go through. Can someone please explain what are the relative merits of using pdflatex as opposed to the "classic" technique of latex foo dvips -Ppdf foo ps2pdf foo.ps From time to time I run into people wh...

php shell_exec() through cygwin

I wrote a script that compiles LaTeX code through pdftex. The trouble is that pdftex only runs on linux. I am accomplishing this task with the use of shell_exec(). I don’t really have the ability to set up a linux box as a web server. I have my client computer, but it is behind a firewall that I do not control. I do have control of my ...

Embedding Fonts in PDF from LaTeX Source with pdflated

I need to embed the fonts that I'm using in my TeX document in my output PDF. I'm using pdflatex for TeX processing, and TextMate as my editor. I can't find any reference on how to embed the fonts I need in the PDF document. ...

Abstract margins in LaTeX

Hi, I'm new to LaTeX and I've got a \begin{abstract} ... \end{abstract} section and I want to change the margins so the text looks more condensed and centred on the page. I need some code that will do this, without stuffing up the margins for the rest of the document. ...

Excluding a chapter from TOC

In my LaTeX document I've got a table of contents that is automatically generated by collecting everything that is of the form \chapter. However, I've got an acknowledgements chapter before the table of contents and I don't want it to be automatically labelled "Chapter 1" or captured in the table of contents. Should I be avoiding \chapt...

Remove boxes from hyperlinked ToC in LaTeX

How do I remove the red boxes from my hyperlinked table of contents created by using the hyperref package in LaTeX. ...

Incorrect hyperlinking in LaTeX

So far the hyperref package in LaTeX has automatically linked all the items in my report correctly. But there is one that did not get linked properly, possibly because I manually added it to the table of contents like this: \addcontentsline{toc}{chapter}{Bibliography} How do I fix this? ...

Ragged headlines within justified text

I am creating a pdf file with Latex via pdflatex and want to have have headlines with ragged text, while the rest of the document should use justified text. This gives me an error (! LaTeX Error: Something's wrong--perhaps a missing \item): \usepackage{ragged2e} .. \flushleft \chapter{Something} \justifying And this one messes up t...

Making LaTeX Beamer Black & White

Is there a way to make LaTeX Beamer output black & white? I need it for paper printing purposes. I'm using the default color theme, and for contrast reasons I need the title and everything to be black. If there is a black&white color scheme, I could use it, but otherwise I don't want other color schemes, with colored backgrounds. Maybe t...

How to customize references to sublists in LaTeX?

I have a list/sublist structure in my LaTeX document. By default, the sublist is delimited with letters, so you end up with this: 1. Item (a) sub item (b) sub item In my document, I've got more than 26 sub items, so I was running into a Counter overflow error, which I fixed by rewriting the sub item label, so that they now lo...

Inserting images in LaTeX

I have a question on inserting images into a LaTeX document. I try to insert images using the keyboard short cut: Ctrl-Alt-G and I'm able to insert images. But the compiled pdf document shows all the images at the end, whereas I want to interleave images with text. Something like the following- Text1 Image1 Text2 Image2 Text3 Image3 I...

Using sphinx/miktex to generate pdf files that displays UTF8 Japanese (CJK) text in windows

I have documentation in ReSt (UTF8) and I'm using sphinx to generate HTML and latex files. (No issues with html conversion) I then want to convert the resulting latex file to PDf. Currently I'm using MiKTeX 2.7's pdflatex.exe command to perfom this conversion. (Converting a source file without Japanese characters produces the expected...

Latex Table of Contents Links to Wrong Section

I have a section followed by a table of contents like so: \section{Section1} ABC. \addcontentsline{toc}{section}{Table of Contents} \tableofcontents \newpage \addcontentsline{toc}{section}{List of Figures} \listoffigures \newpage \section{Section2} DEF. \section{Section3} GHI. My issue is that the "Table of Contents" and "List of Fi...

Including full LaTeX documents within others.

I'm currently finishing off my dissertation, and would like to be able to include some documents within my LaTeX document. The files I'd like to include are weekly reports done in LaTeX to my supervisor. Obviously all documents are page numbered seperately. I would like them to be included in the final document. I could concatenate all...

rounded boxes with text inside beamer

Hi! I want to have several texts in latex which are boxed in a circle or more in a rounded boxe. I tried to use: \pgfnodecircle{Node1}[stroke]{\pgfxy(1,1)}{0.5cm} \pgfnodecircle{Node2}[strokel]{\pgfxy(3,0.5)}{0.25cm} \pgfnodecircle{Node3}[fill]{\pgfxy(5,1)}{0.25cm} \pgfnodeconnline{Node1}{Node2} \pgfnodeconnline{Node2}{Node3} but...

LaTeX \newcommand \par issue

Hi, When I assign a new command and call it at the beginning of a \par the space between the variable text and next word is missing. \newcommand{\testcmd}{This is a test} \par \testcmd foobar. Will be rendered as: This is a testfoobar. \par foo \testcmd bar. Renders fine as: foo This is a test bar. Anyone come across this before ...

Parts in pdflatex Table of Contents

I have a thesis in which I want to group some chapters together, using the \part command. What I would like is to have the following: Chapter 1 Part I Chapter 2 Chapter 3 Part II Chapter 4 Chapter 5 Chapter 6 So the last chapter should again be on the same level as the parts. In the table of contents of the text you can't really...

Run pdflatex quietly

I'm calling pdflatex from within my (C++) program using system(), needless to say all the garbage pdflatex puts on screen is a bit irritating in this case. So...how do I encourage pdflatex to forego the lengthy outputs? It would be even better if only errors would be visible... ...

"Font shape undefined" with latex and isodoc

I'm trying to create a simple invoice with pdflatex and the isodoc class. Unfortunately, the "INVOICE" opening is appear in all lowercase, and I suspect this warning is the reason why: LaTeX Font Warning: Font shape `T1/lmr/bx/sc' undefined (Font) using `T1/lmr/bx/n' instead on input line 19. My best guess at this crypti...

Convert EPS to PDF on the fly with pdflatex on the fly

I'm trying to include an EPS figure in a document that will be compiled using pdflatex. Of course, the picture can be converted to pdf using epstopdf (which comes with the MikTeX distribution). Is there any way to do this on the fly, that is, make pdflatex do the conversion? I'm looking for such a solution because I want to set up an ea...