Tag Info

New answers tagged

1

No. You should ask your OS's PDF viewer to do that. Most PDFviewers (except Acrobat, afaik), allow you to update the pdf file while still open. See the comments to complete the answer.


3

This has been encountered before, see also: \includegraphics and \includepdf both remove all copy (text) from my (R outputted) pdf graphs, using pdfTeX So as I was suspecting it's a font problem. You can compile your document using XeLaTeX (or XeTeX), not pdflatex. \documentclass{standalone} \usepackage{graphics} \begin{document} ...


0

I solved the problem by storing the SVG file first as PS, then opening the PS file and storing it as PDF file.


0

Try the following: \documentclass{report} \begin{document} \begin{table}[tb]\centering \begin{tabular}{cc} \hline a & 1\\ b & 2\\ \hline \end{tabular} \caption{My nice table} \end{table} \end{document}


3

The error message "Missing \begin{document}" means that you are missing a \begin{document} to begin your document. Google could have told you that, by the way. Please refer to https://en.wikibooks.org/wiki/LaTeX/Document_Structure for more information.


1

Just set up a large number of columns; TeX doesn't complain if you don't fill them all. \begin{filecontents*}{\jobname.csv} Degrees,10,20,30,40,50,60,70,80,90 Time,1.33,0.90,0.72,0.63,0.50,0.43,0.41,0.40,0.38 \end{filecontents*} \documentclass{article} \usepackage{booktabs,array} \usepackage{csvsimple} \begin{document} \section{Good typesetting with ...


2

I suggest to loop twice over the file. The first loop is for counting the columns and the second loop is for setting the table. The following code implements a new macro \docolumncount which takes the file name as first argument and saves the column count minus 1 into the second argument, here \mycolumncount. This is used to set up the table: ...


1

Recommendation from @Ulrike Fischer worked: I found default.tex used by Rstudio as a template when converting from Rmd to pdf (~/R/x86_64-pc-linux-gnu-library/3.2/rmarkdown/rmd/latex/default.tex) and removed \usepackage{lmodern} from there. After that this piece of code compiled correctly: --- output: pdf_document header-includes: - ...


0

You may try to use pdf2htmlEX. The details are given in the Figure 3 of the article on TUGboat: Online publishing via pdf2htmlEX HTML / PDF.


1

Other answers didn't work for me and since I can't comment, this is how I did it: I added a -fmt=yourfmtfile option in the external/system call option. This is how my main file begins: %&preamble \usetikzlibrary{external} \tikzset{external/system call={xelatex -fmt=preamble.fmt \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname ...


4

You need to change the MediaBox in the file, with a text editor such as emacs or on the commandline with for example this sed command sed -b -e 's/MediaBox \[...................\]/MediaBox [0 -140 553.5430 580]/' EX2-98.pdf > EX2-98-new.pdf where -b means binary mode and don't mess with line endings, an you need exactly that many . this will leave the ...


0

Since version 2.8.6, TeXstudio supports [txs-app-dir] and [txs-settings-dir] as part of the path definition of commands. In your case, something like this should do the trick: [txs-app-dir]\..\MikTexPortable\miktex\bin\pdflatex.exe Fur further details, see the manual.


2

First message (package everyshi) ABD: EveryShipout initializing macros This comes from package everyshi. ABD means the place of execution and is short for \AtBeginDocument. It's an information or even only a debug message. I agree with egreg, see his comment, that this should be rather only appear in the .log file. Second message (MetaPost support) ...


1

I'll give as an example the code for a booklet job (a 10 pages short story, including the titlepage) I did a few years ago, with the pdfpages package: I had a pdf document compiled in A5 format, with one title page, and and no blank page after the title page, so that page 1 was on the second physical page. My aim was to print it on sheets of A4 paper, with ...


2

You could do this in a 2-step process. First, create the full size PDF as usual, then include that PDF in a new Latex run using pdfpages. pdfpages allows scaling and offsets. sample.tex \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum \end{document} Final latex document that includes sample.tex. Play around with the scale and ...


2

If you have a texlive installation, you can type "texdoc pdfbook" on the commandline and get the manpage of pdfbook. In short: pdfbook --suffix ’sig4’ --batch myfile1.pdf myfile2.pdf will result in files named ’myfile1-sig4.pdf’ and ’myfile2-sig4.pdf’. (I have copied this sentence from the manpage).


1

(This answer pertains to the updated version of the query, in which the OP provided specifics regarding the options used when setting up the siunitx package.) The instruction \sisetup{inter-unit-product = $\cdot$} is incorrect. It should be \sisetup{inter-unit-product = \cdot} With this modification, your example code compiles correctly.


4

Here are three solutions: Since latexmk also examines the .log file for dependencies, you can persuade latexmk that there is a dependency on file.a by writing a suitable line to the .log file. The following definition of \recorder does this: \newcommand\recorder[1]{\typeout{(#1)}} Get the filename into the .fls file by opening the file without reading ...


1

Based on @Ignasi answer and the link he posted about using an editor with PdfLaTeX, the solution is as follows: From foolabs.com download xpdf and unpack to a location on your computer. In Computer Properties Go to Advanced system settings -> Environment Variables and add the path of your particular xpdfbin\bin to the path. This will enable Windows to find ...


8

I'm not sure you want the values rounded to integers, because in case of A4 paper, we find /MediaBox[0 0 595.276 841.89] However, this depends on the setting of \pdfdecimaldigits whose default value is 3. (Thanks to Heiko Oberdiek for remarking it.) The parameters to use are \pdfpagewidth and \pdfpageheight: \documentclass[letterpaper]{memoir} % All ...


5

First make sure you installed Tex Live properly, the command is sudo apt-get install texlive-full Then you can try setting your document as utf-8 with inputenc (compiled with pdflatex). \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[main=english,czech]{babel} \begin{document} This is some text in english. ...


3

This is what externalize TikZ library does. Try to compile next code with command pdflatex --shell-escape levels (being levels the name of the file). As a result you'll get a pdf file with the whole document, but also another file called levels-figure0.pdf which contains the TikZ figure: In fact you'll get as many levels-figureXXX.pdf files as ...


1

The CMBright fonts are available in OpenType format as part of the cm-unicode project. Granted that your file is UTF-8 encoded, you should get comparable results by doing \documentclass{scrartcl} \usepackage{ifluatex} \ifluatex \usepackage{fontspec} \setmainfont{XCharter} \setsansfont{CMU Bright}[ Scale=MatchUppercase ] \setmonofont{Ubuntu ...


2

First case: \documentclass{article} \usepackage[a4paper,landscape,top=0cm, bottom=0cm, left=0cm, right=0cm]{geometry} \typeout{* paper width: \the\paperwidth} \typeout{* text width: \the\textwidth} \begin{document} \end{document} The margins are zero, thus the text width equals the paper width: * paper width: 845.04684pt * text width: 845.04684pt ...


4

As mentioned in the comments and in Harish's answer, using pgfplots allows you to specify the styling once and reuse it in your document rather than reinventing the wheel for every plot. I created a cycle list called mycycle that can be used in any plot (with cycle list name=mycycle to cycle through plot styles. The rest of the styling is done in the ...


3

Why not use pgfplots for such jobs? Any way, to draw box around legend, you can use fit library. The syntax of plot is different. To get plot marks you should use coordinates with proper syntax. And for getting tick labels in multiples of 2 change the foreach loop as {0,2,...,12}. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} ...


2

miktex is a distribution of many related programs. It includes tex, latex, context, luatex, ... and pdflatex. They want you to use pdflatex.


1

Here is a setup that could work for you: \documentclass{article} \usepackage{geometry} \geometry{% paper=a4paper, % A4 paper = 210mm x 297mm landscape, % 297mm x 210mm in landscape mode hmargin=28.5mm, % horizontal margin = 2 x 28.5mm = 57mm % > text width = 297mm - 57mm = 240mm = 24cm vmargin=10mm} % vertical margin = 2 x ...


0

The solution is the following. I had to add a line replacing underscores. str = re.sub(r'"\b', r'\\glqq{}', str) str = re.sub(r'\b"', r'\\grqq{}', str) str = re.sub(r'[\.,!\?]"', r'\\grqq{}', str) str = re.sub(r'"', r'\\textquotedblleft', str) str = str.replace("_", "\_") # replaces the underscores, thank to Johannes for point it out!


0

Answer to my - admittedly - specific question: The name of the output file was empty and accepted like this by the python program.


1

If you run latexmk with the argument -pdf, it will compile with pdflatex. In TeXWorks: On Linux, change the `~/.latexmkrc' file as per this SE answer.


2

You're comparing the wrong shapes, in my opinion. Consider \documentclass{article} \usepackage{newtxtext,newtxmath} \begin{document} \makebox[1cm][r]{$x_p$}\sbox0{$_p$}% \makebox[0pt][l]{\kern-\wd0 \smash{\vrule height 1.5ex depth 4ex width 0.1pt}} \makebox[1cm][r]{$l_p$} \end{document} which typesets $x_p$ and $l_p$ so that the right borders are ...


3

In math mode you can add negative spacing using \!. \documentclass{article} \usepackage[cmbraces]{newtxmath} \begin{document} Let $\{x_n\} \in l_{\!p}$ \end{document}


5

My own conclusion, after running a series of more tests, and after studying a bit more the official spec for JFIF (JPEG File Interchange Format) file format (PDF) is this: ImageMagick is not at fault. All of pdflatex, lualatex and xelatex are wrong and exhibit a bug when they do not properly embed the JPEG into the PDF page. JFIF spec The JFIF ...


0

See the snapshot of the setup on Mac OS X of Texworks running latexmk -pdf option


4

merge.tex \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,fitpaper]{\filea.pdf} \includepdf[pages=-,fitpaper]{\fileb.pdf} \end{document} Then a command line of pdflatex '\def\filea{myfile1}\def\fileb{myfile2}\input merge' Should do as you ask. Depending on which system commandline you use, you may need different ...


10

The image wiz-standard.jpg does not have any resolution DPI settings set (the other image is set to 300 and 300). Several image software packages do not set this properly as it is rarely used (including by TeX as far as I know), but for some odd reason TeX requires it to be set (to anything you like - because it is not used - whether you choose 100x100 or ...


16

As it happens I stumbled upon the same problem last week and the next version of LuaTeX will detect these images and issue a warning: LuaTeX warning (file wiz-standard.jpg): The image specifies an unusual resolution of 1dpi by 1dpi. pdfTeX/luaTeX read jpegs bytewise (no exif involved) and images of these kind really specify a resolution of 1dpi by 1dpi ...


4

This should serve as a starting point. \documentclass[ebook,oneside,openany,17pt]{memoir} \usepackage[margin=0.3in]{geometry} \usepackage[hidelinks]{hyperref} \usepackage{blindtext} %% for demo \setsecnumformat{} \pagestyle{empty} \makeatletter \let\ps@plain\ps@empty \makeatother \providecommand\chapfont{} \makechapterstyle{mychap}{ ...


0

The error message "Fatal format file error; I'm stymied" means that TeX binary is trying to load latex.fmt (or pdflatex.fmt) but the version of this TeX binary differs from another TeX binary which created such latex.fmt. There could be two reasons: you have installed two TeX binaries (in different versions) or you have somewhere in your computer the old ...


8

The user guide of the fontspec package is indeed quite lengthy. However, I would not go as far as calling it intimidating. There's a huge and wonderful world out there related to OpenType and TrueType fonts, and it's not surprising (to me at least) that the manual that explains how to explore this world isn't brief. In what follows, I will assume that your ...


0

I am using Mac OS, but I think the solution is quite similar. You have to change the default program Windows associates with a .WAV-file and change it to wave-surfer, cf. https://support.microsoft.com/en-us/kb/307859


1

You have to put Skype in a separate line like \cventry{Skype}{\small \url{xxx}\normalsize}{}{} Here is your code: \documentclass[11pt,a4paper]{moderncv} % moderncv themes %\moderncvtheme[blue]{casual} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts) ...


2

Use tcolorbox. \documentclass{article} \usepackage{lipsum} \usepackage[most]{tcolorbox} \definecolor{bg}{RGB}{255,249,227} \begin{document} \lipsum[1] \begin{tcolorbox}[enhanced jigsaw,colback=bg,boxrule=0pt,arc=0pt] \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \end{itemize} \end{tcolorbox} \end{document} ...


1

In case someone has the same problem again in the future. For me it worked when I used \usepackage[dvips]{graphicx} instead of \usepackage[pdftex]{graphicx} I was using TeXShop 3.51 on a Mac. What I also did was in TeXShop -> Preferences to go to Tab 'Typesetting' and Where it says 'Default Script' to select the radio button 'TeX+DVI' and then in the tab ...


0

Here is a solution. I'm using \quad to insert some space left and right of the names in the table. Without them, the table would align with the text borders. This is just a matter of taste. The \hfill pushes the tables to the left and right such that you don't have to specify an explicit width for the white space in the middle. \documentclass{article} ...


1

Use tabular \documentclass{article} \usepackage{lipsum} \begin{document} {\centering\LARGE\bfseries Certificate \par} \lipsum[1-2] \vfill \begin{tabular}[t]{l} Name\\ Designation\\ Address\\ Address\\ Address \end{tabular} \hfill \begin{tabular}[t]{l} Name\\ Designation\\ Address\\ Address\\ Address \end{tabular} ...


1

This could very conveniently be handled by left-aligned under-stacks. \documentclass{scrreprt} \usepackage{stackengine,lipsum} \setstackEOL{\cr} \def\stackalignment{l} \begin{document} \lipsum[1] \bigskip \noindent\Longunderstack{ [Name]\cr [Designation]\cr Address Line 1.,\cr Address Line 2.,\cr Address Line 3. } \hfill \Longunderstack{ [Name]\cr ...


1

You need to define \partmark. Every sectioning command should have an accompanying \<level>mark command that's issued as part of the working of \@startsection. \documentclass{scrlttr2} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern,textcomp,graphicx} \usepackage{booktabs} \usepackage{tabu} ...


6

Yes, I would say this is a bug in pdftex. (It seems related to this bug, which was fixed a couple of years ago.) It appears that \rightmarginkern reports a zero kern if the \parfillskip contains a glue component, while margin kerning itself is applied despite the glue component. Both agree if you set \parfillskip to 0pt. For the exact rules, I can only ...



Top 50 recent answers are included