1

I am running pdftex from command line and the images are getting clipped. When I run the same commands from a saved tex file, no clipping occurs. I have attached the commands and rendered outputs also available (if you bump up my reputation points I can upload them). I do not see any unusual differences in the log files.

This seems like a bug and pdftex's tracking system would not let me register to file a bug (http://foundry.supelec.fr/gf/project/pdftex/).

Can some please confirm this as bug, recommend how I can report it, and perhaps provide a workaround. I am trying to render a circuitikz via commandline.

:: PDF from Files
    pdflatex -interaction=nonstopmode -halt-on-error -jobname circuit_file circuit.tex circuit.pdf

:: PDF from String   
    pdflatex -interaction=nonstopmode -halt-on-error -jobname circuit_string \documentclass[class=minimal,border=4pt]{standalone} \usepackage{tikz} \usepackage{circuitikz} \usepackage{siunitx} \pagestyle{empty} \begin{document} \begin{circuitikz}[european]\draw(0,0) to [V, v=$V_1$, i_=$I_1$] (0,2)to [R, l^=${R_1}$] (2,2)to [R, l^=${R_2}$, v^<=$V_2$] (2,0) -- (0,0); \end{circuitikz} \end{document}

enter image description here

gpitel
  • 71

1 Answers1

4

As Martin suggested, putting quotes around the latex string solved the clipping problem.

pdflatex -interaction=nonstopmode -halt-on-error -jobname circuit_string "\documentclass[border=4pt]{article} \usepackage{tikz} \usepackage{circuitikz} \usepackage{siunitx} \pagestyle{empty} \begin{document} \begin{circuitikz}[european]\draw(0,0) to [V, v=$V_1$, i_=$I_1$] (0,2)to [R, l^=${R_1}$] (2,2)to [R, l^=${R_2}$, v^<=$V_2$] (2,0) -- (0,0); \end{circuitikz} \end{document}"
gpitel
  • 71
  • Ok, I recently switched from Miktex on Windows to texlive on Linux. I type the same command above and now I get an error in Linxux: [Loading MPS to PDF converter (version 2006.09.02).] ) ! Extra }, or forgotten $. @let@token ...{ \pgf@circ@finallabel {voltage/} }

    <*> ...european]\draw(0,0) to [V, v=$, i_=$] (0,2) to [R, l^=$] (2,2)to [R, l... ! ==> Fatal error occurred, no output PDF file produced! Transcript written on circuit_string.log.

    – gpitel Mar 13 '13 at 02:20
  • Try single quotes instead of double. Some of your $ characters are being interpreted as the start of shell variables. – Mike Renfro Mar 13 '13 at 02:41