# Tag Info

12

Package pifont contains the characters (\ding{51} and \ding{55}) and package newunicodechar helps in assigning them to the Unicode slots: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pifont} \usepackage{newunicodechar} \newunicodechar{✓}{\ding{51}} \newunicodechar{✗}{\ding{55}} \begin{document} Check mark: ✓, ballot x: ✗ \end{document} ...

1

The example is not significant, sorry. The apa class loads flushend that should balance the columns in the last page; however, if the document doesn't fill the first page, the package conflicts with the placement of the author information at the bottom of the left column in the first page. Just add some text in order to fill up the first page and the ...

3

Glyphs can be larger than their bounding box: \documentclass{article} \begin{document} \fboxsep0pt \fbox{$\widetilde{\mathbf{l}}$} \end{document} You can enlarge the border of preview by changing the length \PreviewBorder

0

\documentclass{article} \usepackage{fancyvrb} \usepackage[tikz]{bclogo} \definecolor{grisbleu}{RGB}{224,224,224} \begin{document} \begin{bclogo}[couleur=grisbleu!90,logo=\bccrayon, couleurBord = grisbleu , couleurOmbre = grisbleu, epBarre=2.5]{Code} \begin{Verbatim}[formatcom=\color{red},fontfamily=courier,fontsize=\small,fontseries=b] ...

4


7

As a work-around you could switch locally to ansinew reading with luainputenc: (edited a bit to reset the catcodes afterwards and also removed the write call back so that the toc now contains again real utf8). \documentclass{article} \usepackage{fontspec} \usepackage{luatexbase} %not needed now, but probably in the future. \PushCatcodeTableNumStack ...

13

The problem is not in mixing Icelandic and German. A smaller example shows the issue in all document classes. \documentclass{article} \usepackage[icelandic]{babel} \begin{document} Test \end{document} Running this through LuaLaTeX produces the same error you see (and similar ones later on): ! String contains an invalid utf-8 sequence. l.144 ...

1

I suggest another solution of the problem of processing the macro argument "character per character" when UTF-8 code and \usepackage{inputenc} is used. You can compare the simplicity of mine solution with others presented here. Suppose, that you have set \usepackage[T1]{fontenc} and \usepackage[utf8]{inputenc}. Then the UTF-8 codes expand to simple tokens ...

3

Highly inefficient and no real substitute for true small caps (my suggestion is to avoid faking small caps at all costs). All common accents are covered, others can be added. \documentclass{scrartcl} % GENERAL STUFF - ENCODING, LANGUAGE \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} % GENERAL STUFF - FONT ...

3

If you need this "fake small caps" only for names and only for single words (note that spaces don't work in your solution) then you can prepare a simple macro \fcs which keeps the first letter unchanged and the rest is uppercased and scaled. \def\fsc#1{\fscA#1\relax} \def\fscA#1#2\relax{#1\scalebox{.87}[.79]{\uppercase{#2}}} test: \fsc{Schrödinger} ...

3

An approximation. If unicode characters appear not in minuscules, it doesn't work correctly. May be there's a solution with \str_case:nnF but you should do it manually, or just use LuaTeX (or XeTeX). \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{arev} \usepackage{xparse} % loads ...

4

There are several issues with this code. First, the error is a consequence of your use of an underscore in the file name: underscores are only valid in LaTeX in math mode (for whatever reason …) so LaTeX enters math mode which results in the italic text. To prevent this, you should enter all file names as verbatim text in LaTeX (e.g. using \verb, or with ...

1

General answer: don't use covington for examples. It's an old package that isn't really very good to begin with. I would recommend gb4e or linguex. See the following question for an overview. Numbered examples in linguistics that I can refer back to Specific answer: covington is so old that it still tests for the "new" font selection scheme, and ...

13

Interletter space is defaulted to \theLetterSpace, but can be changed with optional argument to \spaceout. Additional inter-word space is defined by \theWordSpace. The rest is just using \textsc, etc. \documentclass{article} \def\theLetterSpace{0.5pt} \def\theWordSpace{2\LocalLetterSpace} \newlength\LocalLetterSpace ...

2

You can try something like this: \pdfliteral{q 1 j 1 J 10 0 m 2 2 2 2 0 10 c -2 2 -2 2 -10 0 c -2 -2 -2 -2 0 -10 c 2 -2 2 -2 10 0 c S Q} \vskip15pt Or convex alternative: \vskip15pt \pdfliteral{q 1 j 1 J 10 0 m 10 8 8 10 0 10 c -8 10 -10 8 -10 0 c -10 -8 -8 -10 0 -10 c 8 -10 10 -8 10 0 c S Q} A short description of the ...

4

Using the subcaption package, you can enclose everything in a single figure environment and use subfigure environments for your separate plots. \documentclass{article} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{subfigure}[b]{0.3\textwidth} % plot 1 \caption{Caption 1} % subcaptions aren't mandatory \end{subfigure} \quad ...

1

Only a first trial, due to lack of time --fill in the rest of information \documentclass{article} \usepackage[lmargin=1.5cm,rmargin=1.5cm]{geometry} \usepackage{tabularx} \begin{document} \begin{tabular}{|p{0.45\textwidth}|@{}p{0.45\textwidth}@{}|} \hline \begin{tabular}{@{}l@{}} \large \bfseries Chintaka Mandura \tabularnewline Bsc.Eng(Hons), University ...

4

Some of the high-level user commands provided by datatool aren't as efficient as the lower-level user commands and \DTLgetvalueforkey is one of those cases as it internally uses \DTLforeach* to find the required value in the database. This isn't much of a problem for occasional use with small databases, but for repeated use and for larger databases, it's ...

0

Quick and very dirty hack (far from robust) for the lazy ones: You have to compile the original document twice, which gives my-report.tex. Now modify the document a bit: modified document: \begin{document} ... \begin{titlepage} \includepdf[pages=-]{abstract.pdf} \end{titlepage} % ------------------------------------------------- % This should go to a ...

4

You could use the standalone class along with minipages: \documentclass[border=1cm,multi=minipage]{standalone} \usepackage{lipsum} \begin{document} \begin{minipage}{10cm} \lipsum \end{minipage} \begin{minipage}{15cm} \lipsum \end{minipage} \end{document}

1

After reviewing the PGF Manual and using the build command they suggested (pdflatex -shell-escape paper), the project built without an error, and future builds using my old command (pdflatex paper) worked just fine.

1

This implementation allows that any text following the \marks argument gets pushed onto a new line, rather than get tacked onto the same line as the \marks argument. \documentclass{article} \renewcommand\marks[1]{\ \hfil\allowbreak\mbox{}\hfil\mbox{\bfseries #1}\break} \begin{document} Here is the first text. \marks{Here is the second text.} And here is ...

2

The following code will solve your problem: \renewcommand{\marks}[1]{% \unskip\nobreak\hfil\penalty50\null\nobreak \hfil\textbf{[#1\hphantom{a}marks]}% \parfillskip 0pt\finalhyphendemerits0}

2

Here's a possibility for a Unix systems, with error redirection: \documentclass{article} \usepackage{gnuplottex} \usepackage{etoolbox,catchfile} \patchcmd{\gnuplotgraphicsprocess} {\gnuplotexe\space \subfolder\figname.gnuplot} {\gnuplotexe\space \subfolder\figname.gnuplot\space 2>>\jobname.gnuploterrors} {}{} \AtBeginDocument{\immediate\write18{rm ...

1

I just tried to test fonts in XeLaTeX and they obviously get embedded automatically, because when I used an obscure font and then displayed the PDF on another computer that didn't have the font, the PDF was displayed correctly. This is how i set main font: \usepackage{fontspec} \setmainfont[Ligatures=TeX]{CMU Serif Roman}

4

The \@outputpage routine and the \@outputbox seem to be the right hooks in order to implement actions at start and end of the page body without affecting headers and footers. As an example we overwrite \@outputpage to change the text colour in a cyclic way between red, green and blue for every new page by inserting two \pdfliteral around the original ...

6

Here is my shot: now with lecturer and without metapost, beamer or pgf/tikz. This code should also work with Plain and ConTeXt mkii. \documentclass{article} \usepackage{lecturer,concmath} \begin{document} % % Original Author: Paul Isambert. % Date: July 2010. \setparameter job: fullscreen = true % font = \mainfont %define elsewhere \setparameter ...

0

it makes no real sense to use documentclass standalone together with package auto-pst-pdf. Both will run latex in the background. However, there are some special cases for loading auto-pst-pdf from within pstricks which make things complecated. I created a new file pstricks-pdf which makes it easier to load auto-pst-pdf. It should be available for tomorrows ...

5

For example like this: \let\oriship=\shipout \def\shipout{\afterassignment\shipA\setbox0=} \def\shipA{\aftergroup\shipB} \def\shipB{\oriship\vbox{\preship\box0\postship}} \def\preship{\pdfliteral{q 1 0 0 rg}} \def\postship{\pdfliteral{Q}}

0

It turned out that the plain pages disappeared, when I split the second table, that was too long apparently. So I just ended the table environment somewhere: ... \end{tabular} \end{table} \begin{table}[H] \begin{tabular}{| p{4.5cm} | p{9.5cm} |} ... But I still don't understand why a plain page was inserted before the long table. Well but after four ...

1

With the standalone class your example fails with another error due to a option clash with preview. With article I can reproduce your error and it is due to a bug in pstricks: There are too many braces and so it loads auto-pst-pdf in a group. One can demonstrate the problem with this code: \documentclass{article} \usepackage{pstricks} ...

2

I've had the same problem for a few months. Something must have changed in pstricks. My solution was to remove the pdf option, and replace it with what the option does: loading auto-pst-pdf after pstricks.

4

This strikes me as a good place to use 'blocks' in beamer (I assume you're using beamer). \documentclass{beamer} \usetheme{Copenhagen} \begin{document} \begin{frame} \begin{block}{Food for Thought} \Huge \begin{align*} x^2 + y^2 = 1 \end{align*} \end{block} \end{frame} \end{document} ...

1

Since it works when you compile as an administrator, it is likely that you simply need to run updmap. See this question for details. Note that this answer is specific to MikTeX. If you are using TeX Live, you should not run updmap. If you are using TeX Live, see my question and answer for information about why you shouldn't do this, as well as instructions ...

7

This seems to be a bug in TeX Live scripts, which failed to trigger format creation after the last upgrades to the LaTeX kernel. You can fix the thing manually by sudo fmtutil-sys --byengine xetex --byfmt latex Report the issue to the TeX Live mailing list. Update According to the messages in the mailing list (starting from ...

1

Here is a different algorithm which is faster and it is more flexible because it uses "\pgfplotfunction" instead of plotting each point at the time. The algorithm is based on the post: Arc between two tips of vectors in 3D Basially the equation posted by Rahul which was obtained from the Slerp Formula. The formula is easy to code into a "\pgfplotfunction" ...

7

Since no one else has chimed in, I will convert my comment to an answer. As I had said, "most fonts are scalable, meaning that resolution scales to the available space." The MWE below is a whole beamer slide, and can be seen to retain good resolution to very large font size. \documentclass{beamer} \usepackage{xcolor,graphicx} \begin{document} ...

1

For font, you can use the \f@size macro (see this question). For the layout, you can use the layout package (just add \usepackage{layout} to the preamble) and the command \layout after \begin{document}. This is what I got when I used this with the el­sar­ti­cle-tem­plate-harv.tex template.

0

I usually make the plots within R and export it to SVG. Then I use son image editor such as Inkscape to create a PDF version. This PDF version looks nice in the final latex document. I have done this several time with optimal results.

5


3

You can use the \doitext command to modify what is displayed. You may need to use something like: \renewcommand*{\doitext}[1]{doi: #1} See http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/latex/contrib/doipubmed/doc/doipubmed.pdf for more details.

1

I encountered similar issue and then realised it was the preview of my editor (texstudio) which was responsible as when I opened the pdf file points were showing up. Maybe it can help.

1

One thing that confuses me much in tikz/pgfplots is the lack of a clear function to draw an arc between two points with a common center of curvature. As far as I can see the arcs shown here are all either great circles or arcs with constant altitude (parallel to the equator). I took this problem and thought first about how to draw an arc in general in 3D ...

0

Pstricks graphics can be compiled directly with pdflatex. You just have to load the auto-pst-pdf package after pstricks, and add the --enable-write18 switch to pdflatex from the Execution modes interface in WinEdt. As for the .eps files, you can convert them to .pdf format with a tight bounding box with the excellent tool epspdf-setup, available from ...

0

You can use the MaTeX Mathematica package to generate figure labels with LaTeX in Mathematica. This is described here: http://mathematica.stackexchange.com/a/76943/12 How to match font sizes is a slightly different topic and is explained here: http://mathematica.stackexchange.com/a/750/12

Top 50 recent answers are included