# Tag Info

15

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 ...

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 ...

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 ...

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 ...

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 ...

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. ...

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 ...

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 ...

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 ...

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}{ ...

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 ...

3

Adobe has specified a syntax to open PDF files with some parameters inside URLs, see Parameters for Opening PDF files. With package hyperref, your PDF document can refer to other PDF documents. For example, the external document should be opened at page 4: \url{http://www.example.com/foo.pdf?page=4} ...

3

The problem is due to the narrow size of the column. You have two choices. Declare \footnotesize before \begin{algoritmic} \begin{algorithm} \caption{Equivalent Method Handle (MH) Detection} \label{alg:equivalentmap} \footnotesize \begin{algorithmic}[1] \State $mh$: A method handle to be proceeded. ... \EndProcedure \end{algorithmic} \end{algorithm} ...

3

Yes, LaTeX will parse the left and right quotation marks correctly if you tell it to parse the input with UTF-8 encoding. \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} ‘Hello’ \end{document}

3

xunicode sets up for these commands also some OT1 defaults, but the main point are accents commands. E.g. \DeclareEncodedCompositeCharacter{\UTFencname}{\M}{0322}{0322} % (Combining retroflex hook below) You can naturally redefine the command if you don't use it, but there is a tradition to use "one-char-commands" for accent commands and so I would never ...

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 ...

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} ...

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}

3

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 ...

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) ...

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).

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

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 ...

2

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

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 ...

2

I can conform this issue now. On my local machine it was impossible to reproduce this error. but on an other machine I succeeded. I have tried it like the following. 1.) installed python2.7 and pygmentize 2.) did not add path and compiled (_minted-exampleb was created as subdirectory automatically) but I failed with the above message. 3.) installed ...

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

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) ...

1

I'm continuing egreg's answer, which fixes "bug" #2 by reducing font size or widening the text and thus avoiding line breaks. You can format the procedure's name in any way you like, by redefining the \textproc macro, e.g.: \algrenewcommand\textproc{\textit} If you don't like the italics that I chose, try \textrm instead. If you don't want to use ...

1

There is a reference in newtx to newpx, it is in newtx.map: ntx-Italic-tlf-th-t1 ntxtmri " encntx-ecth-tlf ReEncodeFont " <[ntx-ecth-tlf.enc <ntxtmri.pfb ntx-Italic-osf-th-t1 ntxtmri " encntx-ecth-osf ReEncodeFont " <[ntx-ecth-osf.enc <ntxtmri.pfb

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