Tag Info

New answers tagged

1

You could use the svg package, which does exactly what the svg-inkscape documentation describes. \documentclass[12pt]{article} \usepackage{svg} \setsvg{inkscape=inkscape -z -D,svgpath=fig/} \begin{document} \begin{figure} \centering \includesvg[width=0.5\textwidth]{my-figure} \end{figure} \end{document} Now all you need to do is save your images as ...


4

Simple I’d write it as plain text Meeting at 5:00 Or if you need it in math mode with \text $\text{5:00} + \text{1:00} = \text{6:00}$ But I can’t see a reason for that since times arn’t math and the colon can be misread as divide: 5:30 = 5/30 = \frac{5}{30}. Advanced You could even define a command to have a globe appearance that can be change later ...


1

Once again I found the solution in the docs (page 100): ... \tableofcontents [ currentsection, currentsubsection, subsectionstyle=show/shaded/hide ] ... show = current subsection is shown regularly shaded = the sections other subsections are shown, but shaded hide = other sections subsection entries are ...


5

A general answer, covering also the cases of three and four byte UTF-8 characters; \<ö or \<{ö} is allowed. If a space creeps in, like in the last example, it is removed. Maybe a test for a control sequence should be added, in order to catch wrong input; as long as you have just characters or { after \<, it should be safe. \documentclass{article} ...


5

I am sorry about my non-LaTeX answer but I would signify that we can treat with UTF-8 codes as one token i normal 8bit pdftex and we can avoid the complications shown in David's and egreg's answers. You can try to create the UTF-8 encoded file: \input lmfonts \def\<#1{{\bf#1}} f\<oo b\<öll €\<€ f\<{oö} f\< öo \bye and process it by ...


2

In your original document, if you put your \title command after \begin{document} things work. However, if you don't load the inputenc package at all, things also work. I think this is a better solution. I've added the fontenc package to use the T1 encoding for the Latin text and removed the trick that @egreg mentions in his comment. ...


5

The replacement text of \scdefault should be a string good for the fourth argument to \usefont; its default value is sc. Your paj is a family name. Redefine \scshape: \makeatletter \let\scshape\relax % to avoid a warning \DeclareRobustCommand\scshape{% \not@math@alphabet\scshape\relax \ifnum\pdf@strcmp{\f@family}{\familydefault}=\z@ ...


7

The equation is way to wide. \maxdimen is 16383.99998 pt = 1073741823 sp = (230 - 1) sp≈ 5.76 m. I can fit the equation to \maxdimen only, if the font size is reduced dramatically: \documentclass[12pt]{article} \usepackage{fix-cm}% to provide smooth tiny font sizes \usepackage{amsmath,mathtools} \usepackage[ paperwidth=\maxdimen,% normal paper ...


2

\documentclass{article} \begin{document} the \texttt{limma} Bioconductor package \end{document}


1

kpfonts has a nomath option for precisely this purpose. It will load all Kepler text fonts, but not modify any mathematics fonts. The \usepackage[math]{blindtext} and \blindmathpaper in the example are just for some sample text with mathematics; they are not needed for your actual document. Code: \documentclass{article} \usepackage[nomath]{kpfonts} % load ...


3

here an example \documentclass[a4paper]{article} \usepackage{hyperref} \parindent=0pt \begin{document} \section{Example with \textit{hyperref}} and the associated clinical information were downloaded \\ (GEO,\href{http://www.ncbi.nlm.nih.gov/geo/}{http://www.ncbi.nlm.nih.gov/geo/})\\ selected data are shown in Table \ref{tab1} . Information \\ and ...


1

The problem is that you are telling LaTeX to fill in all the horizontal space to the right of your left boxes so there isn't room for anything else on that page. To avoid this, wrap the boxes in an outer minipage environment something like the following. I've also made your minimal example a bit more minimal by eliminating unneeded preamble. Note that you ...


0

Use the origin anchor to position the plot: \documentclass[margin=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \begin{document} \begin{tikzpicture} \draw[<->,color=lightgray] (-4,0) -- (4,0); \draw[<->,color=lightgray] (0,-4) -- (0,4); \draw[dashed] (-1,-1) rectangle (1,1); \begin{axis}[ x=1cm,y=1cm,z=1cm, ...


7

Standard bibtex styles cover only one type of ISBN (it does not matter if you use the 13 or 10 digit format). With biblatex you can create new fields for bibtex entries, let us say ISBN13 and ISBN10. Then all you have to do is redefine how the isbn field is printed, e.g., \DeclareFieldFormat{isbn}{\textsc{isbn}~\printfield{isbn13}} or you can create ...


3

With utf8 the Unicode character € is mapped to \texteuro, which requires textcomp. The definition of \texteuro is \DeclareTextCommandDefault{\texteuro} {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro} If the TS1 font for the current family is known not to have the Euro symbol (that is, it belongs to class 5), the glyph is faked by means ...


0

Add this in you .emacs file: (setf (nth 1 (assoc "LaTeX" TeX-command-list)) "%`%l -interaction=nonstopmode %(mode)%' %t")


7

LaTeX does not need to check anything, the T1 encoding doesn't include euro by definition. It is in the TS1 encoding (as used by textcomp) and of course in the EU1 and EU2 encodings used by lua and xe latex.


1

I had the line \usepackage[demo]{graphicx}. Removing the [demo] in this line fixed the problem.


3

According to page 58 of the TeXBook: TeX will not deal with dimensions whose absolute value is 230 sp or more. In other words, the maximum legal dimension is slightly less than 16384 pt. This is a distance of about 18.892 feet (5.7583 meters), so it won’t cramp your style. Your overfull hboxes are no larger than 9000pt, so a width of around ...


2

A childplay for the textmerg package. A simple example: You have this text file called data.dat where every tree lines of text contain the name, surname and name company: David Smith Tipix Edoardo Vinchenzo Pizzaboom And a simple template file.tex: \documentclass{article} \usepackage{textmerg} \begin{document} \Fields{\Name\Surname\Company} ...


0

Have a look at the most rated answer here. There is a description how to inject a switch for an if clause. You could inject your names in a script somehow like this: pdflatex -jobname outputname "\def\name{Hello world} \input{foo.tex}" You choose output name and Hello world in your script.


0

I have no idea why this happens, but it seems like the mere presence of the file C:\ProgramData\MiKTeX\2.9\dvipdfm\config\dvipdfmx.cfg causes this issue, even if the file is empty. Removing the file seems to fix the problem.


0

run pdflatex <file> | less


5

The question is solved, it was just the wrong usage of pdftex which does not know of \documentclass command. The error is not connected directly to Ubuntu but can occur on any operating system. In order to compile beamer it is necessary to use latex, pdflatex, xelatex or lualatex instead. For example call on commandline or corresponding menu ...


0

Maybe you need this: \newdimen\savedprevdepth \vbox{ \hbox{X} \savedprevdepth=\prevdepth \hrule \prevdepth=\savedprevdepth \hbox{Y} } \bye Explanation: \prevdepth primitive register is set to the depth of the last box in the vertical list. It is set to magic value -1000pt when the vertical list is empty or when the \hrule is inserted to the vertical ...


1

Actually this is not a property that is unique to \hbox. The happens due the default spacing defined above and below the \hrule construct. You can change the spacing manually by using the \kern command. \vbox{ \hbox{X} \hrule \kern2pt %change the pts according to your needs \hbox{Y} } Alternatively, you could also define a macro for this.


4

Quoting from the TeXbook, page 79 (last single dangerous bend) Exception: No interline glue is inserted before or after a rule box. You can also inhibit interline glue by saying \nointerlineskip between boxes. In the case without the rule, the interline glue is added as usual: compute the sum s of the depth of the upper line and the height of the ...


3

It's best (in any alignment) not to have columns that are always spanned. \documentclass[10pt]{report} \usepackage{longtable} \usepackage{tabu} \usepackage[letterpaper, top=0.5in, right=0.75in, bottom=0.5in, left=0.75in]{geometry} \begin{document} \begin{longtabu}{ X[4,l] X[2,r] X[1,c] X[2,r] X[1,c] } \textbf{Description} & ...


3

You can load the T2A font encoding in addition to T1 and babel with options russian, english, plus a font that contains cyrillic glyphs. One of these, on CTAN, is Heuristica – an addition to Adobe Utopia, that also contains oldstyle and superior figures: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[TS1,T2A, T1]{fontenc}% ...


0

\documentclass{article} \usepackage{pst-barcode} \usepackage[crop=off]{auto-pst-pdf} \begin{document} \begin{pspicture}(0,-0.1in)(2.3in,0.5in) \psbarcode{ABC12345}{includetext height=0.375}{code39} \end{pspicture} \end{document} If this works, then try to delete the [crop=ff]


3

Include the column spacing as part of the cell contents, not the column specification: \documentclass{article} \begin{document} Original table: \begin{tabular}{@{}lr@{~~}r@{~~}r@{\hspace{10pt}}r@{\hspace{10pt}}r@{}} \hline configuration & \multicolumn{1}{c@{~~}}{$M$} & \multicolumn{1}{c@{~~}}{$w$} & ...


0

PDF/A is a standard for the archival of documents. However, pdflatex does not guarantee to create documents that conform to this standard by default. How to compile files that conform to the PDF/A standard has been addressed in other posts. See, e.g.: How to generate PDF/A and PDF/X? for details.


1

The reason why your code doesn't work are the ’ characters e.g. in ’$\cos(x)$’. Replace them with ' and you get the desired output (so e.g. ’$\cos(x)$’ --> '$\cos(x)$' ) Besides that, the code works for me: I'll update the manual in the next days, as the characters are shown wrong there, thank you!


0

There is no problem here, the file demo.aux is created first for any links to be inserted on the re-run (if needed) and you can run it a second time for it to input it. You can still view the PDF file the first time as the output says that output has been written to demo.pdf Output written on demo.pdf (1 page, 9898 bytes).


0

This is not a solution but I tried below given code. This might act as a solution to some people out there. This is an example that I tried from the manual - ftp://ftp.fu-berlin.de/tex/CTAN/macros/latex/contrib/gnuplottex/gnuplottex.pdf Texstudio is not showing any errors but it is not plotting anything. I am not sure if I am making a mistake or not. ...


1

The amsmath "subsidiary" environments are built for just this purpose. Here, I use aligned, using the \verts inside the multi-line case expression as the alignment point. You could just as well change the alignment point to some other position, or use gathered if no special alignment of the expression is required. The vertical alignment of the case ...


3

Would this hack be sufficient? % arara: pdflatex \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \text{RHS} \rightarrow \begin{cases} \vert 1 \rangle \bigg[\frac{2\beta}{\sqrt{\alpha^2 + 4\beta^2}}\vert B\rangle &D_1\textrm{ clicks, probability $\frac{\alpha^2}{4}$}\\ \quad - \frac{\alpha}{\sqrt{\alpha^2 + ...


0

I had the same issue with exporting pdfs from inkscape. The work around was to export into ps and then convert pstopdf, e.g. with Adobe Distiller or other tools.



Top 50 recent answers are included