title: Commas out of place and weird editing

text: I'm a relatively new LaTeX user, and although I have been reading tutorials, I'm in a bit of a hurry to write a CV, so I'm using a template I found on the web. However, now that I'm trying to edit it, it's proven to be a bit challenging and I'm kinda stuck.               \cventry{2009- 2012}{}{Bla bla school}{City}{{}}{}  % Arguments not required can be left empty%     %\cventry{2009--2012}{Bachelor of Business Studies}{The University of California}{Berkeley}{Specialized in Commerce}       since the rest of the `{}` had to be completed by stuff like GPA or "First Class sth" and were in my case NA, I just deleted the content inside the brackets. However, the problem was that what resulted was a lot of commas in the wrong places and I can't seem to find how to get rid of them... :(


title: Adding extra nodes at anchors of rectangular node custom shape in tikz?

text: I want to make a node which will be a SPDT switch symbol, which looks like this: ![spdt-orig.png](http://i.stack.imgur.com/fK6fV.png) So, I thought, I could start by deriving a custom shape from a rectangular node, whose size will be set by `minimum width/height`; then I could add small circular nodes at `south west`, `north west` and `east`, and draw a connector line with arrow from the `east`to the `north west` node. I would like the added nodes to be addressable (so I can use them later for connector lines); and I would also like to have a parameter for controlling the small circular nodes' size. I tried reading:   * Can a shape be composed out of "subshapes" in TikZ?   * How to draw saturation symbol inside a node in TikZ   * pgfdeclareshape with variable dimensions using pgfkeys ... and so I tried to cook up an example, but I get stuck at this point: ![test31.png](http://i.stack.imgur.com/EeirW.png) The `X` and the rectangular border are added just for debug; it starts fine (I can draw a circle path, and also add a circular node at the same position, at `south west`), but then the problem is - it seems I cannot calculate the height of the master node properly for the `north west` "small" node. What would be the right way to solve this? Also, the MWE below works for `above=of` positioning, but crashes for `right=of` positioning - any way to fix that? Here is my MWE so far:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning}     \usetikzlibrary{calc}          \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}          % http://tex.stackexchange.com/questions/18400/can-a-shape-be-composed-out-of-subshapes-in-tikz     % http://tex.stackexchange.com/questions/65469/how-to-draw-saturation-symbol-inside-a-node-in-tikz     % http://tex.stackexchange.com/questions/73877/pgfdeclareshape-with-variable-dimensions-using-pgfkeys     \makeatletter     \pgfkeys{/tikz/spdtcircsize/.initial = 0.15cm}     \pgfdeclareshape{spdt}{       %\savedanchor\centerpoint{       %  \pgf@x = .5\wd\pgfnodeparttextbox       %  \pgf@y = .5\ht\pgfnodeparttextbox       %}       %\anchor{center}{\centerpoint}       \inheritsavedanchors[from={rectangle}]       \inheritbackgroundpath[from={rectangle}]       \inheritanchorborder[from={rectangle}]       \foreach \x in {center,north east,north west,north,south,south east,south west}{         \inheritanchor[from={rectangle}]{\x}       }       \saveddimen\circsize{\pgf@x=\pgfkeysvalueof{/tikz/spdtcircsize}}     %   \savedanchor{\center}{%     %     \pgfpointorigin}     %   \anchor{center}{\center}     %%     %   \backgroundpath{       \foregroundpath{     %     \centerpoint     %     \pgfkeys{/pgf/minimum size = \circsize}     %     \pgfset{inner sep=1pt}     %%         \southwest         \pgfpathcircle{\southwest}{\circsize}     %     \pgfusepath{draw}         {         \pgfkeys{/pgf/minimum size = \circsize}         \pgftransformshift{\southwest}         \pgfnode{circle}{center}{}{\tikz@fig@name-c1}{\pgfusepath{draw}}         }         %\pgfpathmoveto{\pgfpoint{0}{-\pgf@ya}}         \pgfpointdiff{\northeast}{\southwest}         \pgf@xa=\pgf@x \pgf@ya=\pgf@y     %     \pgfpathmoveto{\pgfpointadd{\southwest}{\pgfpoint{0}{-1.0\pgf@ya}}}         \pgfpathcircle{\pgfpointadd{\southwest}{\pgfpoint{0}{-1.0\pgf@ya}}}{\circsize}     %     \pgfnode{circle}{center}{}{\tikz@fig@name-c2}{}       }     }     \makeatother          \begin{document}     \begin{tikzpicture}     \node[draw] (n1) at (1,0) {Testing};     % right= of causes ! Package PGF Math Error: Unknown function `west' (in 'west').     \node[spdt,draw,minimum width=20pt,minimum height=20pt] (n2) [above=10pt of n1] {X};     \end{tikzpicture}     \end{document}


title: Why does it matter where I'm trying to call my \foreach loop from?

text: I was trying to post a solution to How can I draw 25 horizontal lines instead of these 25 marked samples?, but I got stuck with a `\foreach` loop which wasn't behaving as I expected it to. Here's my first attempt:               \documentclass[a4paper]{scrartcl}          \usepackage{tikz,pgfplots,amsmath}     \usepackage[T1]{fontenc}     \usepackage{lmodern,textcomp,siunitx}          \begin{document}          \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}       [         height=5cm,         width=6cm,         scale only axis=true,         %         xlabel={\(\alpha\) in \si{\degree}},         ylabel={\(\sin{(\alpha)}\)},         %         xtick=\empty,          ytick=\empty,          xticklabels={,,},          yticklabels={,,},          xmajorgrids={false},          ymajorgrids={false}       ]       \addplot+[domain=0:360,                  samples=25,                  only marks,                  mark=-]                 {sin(x)};       \foreach \myn in {1,...,25}         {           \pgfmathsetmacro{\myx}{360/(25-1) * (\myn-1)}           \pgfmathsetmacro{\myy}{sin(\myx)}           \draw (axis cs:0,\myy) -- (axis cs:360,\myy);         }     \end{axis}     \end{tikzpicture}     \end{center}          \end{document}      I get an error:               ! Undefined control sequence.     <argument> axis cs:0,\myy           l.41 \end{axis}          ?       I wasn't expecting such an error. Nevertheless, I came up with a clunky work around. Here's my 2nd attempt which works quite well (though a bit clunky):               \documentclass[a4paper]{scrartcl}          \usepackage{tikz,pgfplots,amsmath}     \usepackage[T1]{fontenc}     \usepackage{lmodern,textcomp,siunitx}          \makeatletter     \def\aedrawline#1{%%       \edef\mycontent{#1}       \expandafter\ae@drawline\mycontent\@nil}     \def\ae@drawline#1,#2,#3\@nil{%%       \draw (axis cs:#1,#3) -- (axis cs:#2,#3);       }     \makeatother          \begin{document}          \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}       [         height=5cm,         width=6cm,         scale only axis=true,         %         xlabel={\(\alpha\) in \si{\degree}},         ylabel={\(\sin{(\alpha)}\)},         %         xtick=\empty,          ytick=\empty,          xticklabels={,,},          yticklabels={,,},          xmajorgrids={false},          ymajorgrids={false}       ]       \addplot+[domain=0:360,                  samples=25,                  only marks,                  mark=-]                 {sin(x)};       \foreach \myn in {1,...,25}         {           \pgfmathsetmacro{\myx}{360/(25-1) * (\myn-1)}           \pgfmathsetmacro{\myy}{sin(\myx)}           \aedrawline{0,                       360,                       \myy}         }     \end{axis}     \end{tikzpicture}     \end{center}          \end{document}      All's good until @Tarass posts an answer which is very similar in concept to mine but avoids the clunky work around of my attempts:               \documentclass[a4paper]{scrartcl}          \usepackage{tikz,pgfplots,amsmath}     \usepackage[T1]{fontenc}     \usepackage{lmodern,textcomp,siunitx}          \begin{document}          \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}       [         height=5cm,         width=6cm,         scale only axis=true,         %         xlabel={\(\alpha\) in \si{\degree}},         ylabel={\(\sin{(\alpha)}\)},         %         xtick=\empty,          ytick=\empty,          xticklabels={,,},          yticklabels={,,},          xmajorgrids={false},          ymajorgrids={false},         after end axis/.code={%%           \foreach \myn in {1,...,25}             {               \pgfmathsetmacro{\myx}{360/(25-1) * (\myn-1)}               \pgfmathsetmacro{\myy}{sin(\myx)}               \draw (axis cs:0,\myy) -- (axis cs:360,\myy);             }         }       ]       \addplot+[domain=0:360,                  samples=25,                  only marks,                  mark=-]                 {sin(x)};     \end{axis}     \end{tikzpicture}     \end{center}          \end{document}      Could someone explain what's going on here? In particular, why it that when the `\foreach` loop is called within the `axis` environment it is _forgetful_ and needs instead to be processed from `after end axis`?


title: How to ignore everything in the document environment?

text: Yes, you did read the title correctly! I want to ignore _everything_ that is between `\begin{document}` and `\end{document}` when I `\input` a file. I thought that that would be very simple, just use the `environ` package:               \RenewEnviron{document}{}      But it turn out not be that easy. The MWE below yields the correct results: ![enter image description here](http://i.stack.imgur.com/Fk1Pf.png) but only with the comments intact. If you un-comment the commented lines then end up with: > LaTeX Error: \env@document@save@env undefined Interestingly, ignoring this error one can continue past this, and still get the correct results. :-) ## Notes:   * I realize that in there can be other things in the preamble, so this is by no means a general solution. For the places where I need this functionality, the preamble _only_ has `\documentclass` and two `\input`/`\usepackage` which loads all the `.sty` files needed so this will suffice for my needs. ## Code:               \documentclass{article}     \usepackage{environ}     \usepackage{standalone}          \newtoks{\MyToken}          \usepackage{filecontents}     \begin{filecontents*}{foo.tex}         \documentclass{standalone}         \usepackage{MyStandardPackages}              \MyToken={foo}          %   \begin{document}     %       lots of text here     %     %       \SetSomeVarable{\SomeVar}{Some Value}     %            %       \begin{SomeEnvironment}     %           lots more stuff here as well     %       \end{SomeEnvironment}     %   \end{document}     \end{filecontents*}          \MyToken={XXX}               \newcommand{\DisablePreamble}{%         \renewcommand{\documentclass}[2][]{}%  remove def'n of \documentclass         \renewcommand{\usepackage}[2][]{}%     ignore any \usepackage{}     %   \RenewEnviron{document}{}% Ignore everything within the "document" environment.     }%          \newcommand*{\ExtractMyToken}[1]{%         \begingroup% What happens in the group stays in the group!             \DisablePreamble%             \input{#1}%             \global\MyToken=\expandafter{\the\MyToken}%         \endgroup%     }%          \begin{document}     MyToken=\the\MyToken          \ExtractMyToken{foo}          MyToken=\the\MyToken     \end{document}


title: Figure caption within quote environment

text: In order to provide visual contrast, I have decided that I would like to have a certain section of a document I'm writing indented. To achieve this, I've simply been using the `quote` environment because that seems to be the simplest way of doing it. The problem is that I would like to include some pictures in this subsection with captions. The problem is that if you use the `\caption` command, the caption is not indented: ![enter image description here](http://i.stack.imgur.com/Z0VlS.png) It would seem trivial to correct this with a quick and dirty solution like the following:               \begin{figure}[!ht]\addtocounter{figure}{1}            \begin{center}              \includegraphics[width=10cm]{assets/fig001.png}              \begin{quote}Figure \thefigure: Lorem ipsum dolor sit amet, consectetur         adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore         magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation         ullamco laboris nisi ut aliquip ex ea commodo consequat.\end{quote}            \end{center}          \end{figure}      Where I've simply called the `quote` environment again, within the `figure` environment. But, for some reason, if you do this, the indentations aren't quite right and the captions are still indented by a slightly lesser amount than the rest of the text, as you can see: ![enter image description here](http://i.stack.imgur.com/gFBqa.png) The above was produced using the following MWE (the `lipsum` package was not used because I found the paragraphs were too long to screenshot):               \documentclass[12pt]{article}     \pagestyle{plain}     \usepackage[margin=1.8cm]{geometry}     \geometry{a4paper}     \usepackage[parfill]{parskip}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage[demo]{graphicx}          \begin{document}            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod       tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim       veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea       commodo consequat.            \begin{quote}              Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do         eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad         minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip         ex ea commodo consequat.              \begin{figure}[!ht]\addtocounter{figure}{1}                \begin{center}                  \includegraphics[width=10cm]{assets/fig001.png}                  \begin{quote}Figure \thefigure: Lorem ipsum dolor sit amet,             consectetur adipisicing elit, sed do eiusmod tempor incididunt ut             labore et dolore magna aliqua. Ut enim ad minim veniam, quis             nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo             consequat.\end{quote}                \end{center}              \end{figure}              Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod         tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim         veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea         commodo consequat.            \end{quote}            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod       tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim       veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea       commodo consequat.          \end{document}


title: How to change font type and size in case of: table/figure caption, page number?

text: I use packages: fancyhdr and caption. I want to change font to Arial only in those two cases: 1.table/figure caption 2.page number Also I want to change sizes to 10pt and 11pt I know in captionsetup I can use font=small, and some similar for page number eg. fanctheader[CE]{\small \thepage} but it is not enough. And I have no idea how tho change font type.


title: Vertically centering a set of tabbed graphics

text: I have a lot of different graphics in three versions each. All those versions have a fixed width and I want those three versions to be displayed next to each other. So far, I've used a tabbing environment to achieve this. Since I have a lot of graphics, I wrote a command:               \newcommand{\compimg}[1]{         \includegraphics[width=28.8mm]{img#1v1} \> \includegraphics[width=57.6mm]{img#1v2} \> \includegraphics[width=57.6mm]{img#1v3} \\[3mm]     }          \begin{tabbing}         \hspace{31.8mm} \= \hspace{60.6mm} \= \kill         \compimg{1}         \compimg{2}         \compimg{3}         % ...     \end{tabbing}      This works pretty well and the sizes and spacing (3mm between all the images) is perfect. Now, I'd like the images to be vertically centered on each page. I guess I'll have to use a float, but I couldn't get it to work without at least messing up my vertical spacing. How can I center the images on each page without losing the consistent spacing? Any help is appreciated. Thanks, David * * * UPDATE: Since all my graphics have a fixed width, I can get along with `\hspace{3mm}` instead of the tabbing environment. That doesn't solve my problem, but maybe makes it easier.


title: Using BibTeX, how can I make the bibliography multicolumn?

text: Since my bibligraphy stretches over several pages I would like to make only these pages multicolum (2 columns) and maybe also make their text size a bit smaller than the document standard. How is this possible?


title: Create macro for insertion of inkscape figure with width as a variable

text: To input figures directly from Inkscape I write this in a figure environment               \centering     \def\svgwidth{0.5\columnwidth}     \input{name.pdf_tex}      However, I would like to be able to just use a macro instead where the desired width is a variable, but I'm not sure how to do this?


title: pgfplots externalize and references: some work, some don't

text: I have started using the tikz externalization library for my current project. From here I learned to use   `\pgfplotsset{invoke before crossref tikzpicture={\tikzexternaldisable},invoke after crossref tikzpicture={\tikzexternalenable}}`   to have correct referencing of my pictures. This works for 15 out of 18 figures. For some reason, it does not for the last 3. Does anyone have an idea about why? I'm not sure how to produce an MWE here, so here is my log file. All my figures come from Matlab. I used `matlab2tikz` to produce .tikz files that I include in my .tex document. I have done 2 kinds of simulations with various parameters and for some reason, only the figures to my second experiment are affected. Maybe because the files are bigger? There are no errors, only the warnings about undefined references. Of course, I tried recompiling several times - without success. I deleted the externalized figures and had them recreated - nothing. I know about `mode=list and make`, but this produced rotated plots, see here, so this is only an option once I know what causes this behavior. Any suggestions?


title: Description length limit with glossaries

text: Some of my `glossarie` entries have a rather long description. After a certain number of carracters they stop being displayed by the `printglossaries` command. Here is an exemple producing this problem :               \documentclass{article}     \usepackage[shortcuts]{glossaries}          \makeglossaries          \newglossaryentry{short}{name={short},     description={a short entry}}          \newglossaryentry{long}{name={long},     description={     a long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry a long entry a long entry a long entry a     long entry a long entry     }}          \begin{document}     This one works : \gls{short}.     This one does not : \gls{long}          \printglossaries          \end{document}      How can I sidestep this issue?


title: How can I place a double-wide figure float (ie, figure*) on the bottom on the first page of a two-column document

text: In what I would like to be a two-page, two-column document with two wide (`figure*`) figures, I need one to be on the bottom of the first page, and one to be on the top or bottom of the second. However, LaTeX can't place wide figures on the bottom by default at all apparently without the use of an extra package (either `stfloats` or `dblfloatfix`), and both of these packages can only place a float on the page _after_ its location in the source, making it impossible to have a double float on the first page. Is there any way to get around this limitation, and have a float on the bottom of the first page? It's worth noting that the simple idea of putting the float before the real first page doesn't work.


title: MiKTeX and missing repositories

text: The list of repositories in the installer is much smaller than listed on the web site. Why? In particular, there are no Australian repositories listed in the Installer but they are on the website. Can I add repositories manually?


title: Scrbook: Using fallback calculation to setup font sizes

text: When using the class `scrbook` and customizing the font size prior the usage of `\printbibliography` I got these warning (and in big documents I got them several times): > Class scrbook Warning: Using fallback calculation to setup font sizes > (scrbook) for basic size `12pt' on input line 32. MWE:               \documentclass{scrbook}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[backend = biber]{biblatex}     \renewcommand*{\bibfont}{\normalfont\changefontsizes{12pt}}          \usepackage{filecontents}         \begin{filecontents}{\jobname.bib}     @online{GLS:datasheet,         title = "GLS Datasheet",         organization = "Optoelectronics Research Centre",         howpublished = "Website",         date = "2004-09",         urldate = "2013-07-01",         url = "http://www.southampton.XXXX",         address = "Southampton, United Kingdom"     }     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}     \KOMAoptions{fontsize=12pt}     \nocite{*}     \printbibliography     \end{document}      **Do I have to expect unexpected results?** And it that is the case, what can I do against it? Otherwise how could I possibly silent these warnings?


title: Use CSS-style color specifications in xcolor?

text: I have colors on my website #eff5f9 and #dfecf7. I would like to also use them in a latex document. Is there a way to use such hexadecimal specifications with xcolor? I've tried to read the xcolor manual, but have been unable to find an answer there. Googling has not revealed any simple xcolor tutorials.


title: Is it possible to abort loading a package if it's too old?

text: I'm working on a package that has to work on both TeXlive 2009 (Ubuntu, so updating TeXlive is a nonstarter) and later versions, and I'd like to be able to use fontspec with LuaLaTeX if we're on TeXlive 2010 or later, but `\RequirePackage{fontspec}[2008/08/10]` (Ubuntu's TeXlive 2009 ships with a `fontspec.sty` from `2008/08/09`) still tries to load `fontspec.sty` and the date argument only serves to make LaTeX issue a warning that it's too old - after barfing out errors because `fontspec.sty` has `\RequireXeTeX` in it. Is there a way to abort loading a package if it's too old, or do I have to do something borderline insane involving (temporarily) redefining `\ProvidesPackage`. I have the following example cooked up, but I'd _love_ to replace it with something saner:               \listfiles     \documentclass{article}     %\usepackage{trace}     \def\XID#1{\begingroup\ifdefined #1\aftergroup#1\fi\endgroup}     \XID\traceon     \let\OPP\ProvidesPackage     \def\ProvidesPackage#1[#2/#3]{%       \let\ProvidesPackage\OPP       \let\OPP\undefined       \begingroup         \ifnum #2 < 2009 % if fontspec is older than 2009, abort           \aftergroup\endinput           \XID\traceoff         \fi       \endgroup       \XID\traceoff       \ProvidesPackage#1[#2/#3]}          \usepackage{fontspec}     \ifdefined\setmainfont       \message{^^J*** \string\setmainfont\space defined! ***^^J}     \else       \message{^^J*** \string\setmainfont\space not defined! ***^^J}     \fi     \begin{document}     \end{document}      **EDIT:** After some fairly intense hacking, I came up with this shorter and saner replacement:               \documentclass{minimal}     \makeatletter     \def\IfNewer#1#2#3#4{% we chain into #5 if true and #6 if false using \@{first,second}oftwo.       \begingroup %that we might forget the craziness that is to follow...       \def\NeedsTeXFormat##1{\@ifnextchar[\relax\relax}       % This is rather brittle and should probably use \@ifnextchar[       \def\ProvidesPackage##1[##2/##3/##4 ##5]{%         \newif\if@goahead % defaults to false, obviously.         % Ugly test, but it works         \ifnum ##2 < #2 % Year too old         \else\ifnum ##2 = #2\ifnum ##3 < #3 % Year OK, month too old         \else\ifnum ##2 = #2\ifnum ##3 = #3\ifnum ##4 < #4 % Year & month OK, day too old         \else            \@goaheadtrue         \fi\fi\fi\fi\fi\fi         \endinput}       \input #1.sty % use TeX's \input to avoid #1.sty being in \listfiles       \if@goahead         \endgroup % \if@goahead and our redifinitions disappear in a puff of logic.         \expandafter\@firstoftwo       \else         \endgroup         \expandafter\@secondoftwo       \fi}     \makeatother     \IfNewer{fontspec}{2010}{01}{01}       {\message{^^J*** New enough! ***^^J}}       {\message{^^J*** Too old! ***^^J}}     \begin{document}     \end{document}


title: How can I nest coordinate calculations in TikZ?

text: Why does this not work? I'm not using LaTeX and TikZ very much; I don't see it.               \begin{tikzpicture}     \coordinate (Zero)  at (0,0);     \coordinate[label=below:cell a] (vertexA) at (0, 10);     \coordinate[label={above right:cell b}, label={below right:cell c}]                 (vertexB) at (5, 8);     \coordinate(vertexC) at (2.5, 0);     \coordinate(vertexD) at (12, 4);          \coordinate (centroidCellA) at  ($ 1/3*((vertexA)+(vertexB)+(vertexC)) $);            \end{tikzpicture}      I get               ! Package pgf Error: No shape named (vertexA is known.


title: How to implement two figure counters with proper hyperlinks in hyperref in latex?

text: I want to typeset a book with a quiz in it. I want to have two types of figures:   * text figures: These are indexed i, ii (roman)   * quiz figures: These figures are related to the quiz, and should have their proper numbering: 1,2,3...n I want the quiz figures to be next to each other, not on top of each other, the only way to achieve this is using subfloats. In principle this is possible using custom counters, which gives the proper reference. However, the hyperref package doesn't seem to understand these custom counters. How do I get the hyperref links to link to the proper figure? My implementation is as follows:               \documentclass{book}     \usepackage[english]{babel}     \usepackage[]{graphicx}     \usepackage{subfig}     \usepackage{hyperref}          %Counters     \newcounter{textcounter}     \setcounter{textcounter}{0}     \newcounter{quizcounter}     \setcounter{quizcounter}{0}          \begin{document}          \chapter*{Chaptername}          \section*{Introduction}     This is our normal text, where we want to refer to accompanying figures like figure \ref{textfigure1}.          \begin{figure}     \addtocounter{textcounter}{1}     \renewcommand{\thesubfigure}{\roman{textcounter}}     \renewcommand{\thefigure}{}     \subfloat[Example textfigure]{\includegraphics[width=0.5\columnwidth]{example_ti.jpg}\label{textfigure1}}     \end{figure}               \section*{Table}     \begin{enumerate}     \item Question one, asking questions about quizfigure \ref{quizfigure1}.     \item Question two, asking questions about quizfigure \ref{quizfigure2} , with more info in textfigure \ref{textfigure1}.     \end{enumerate}          \section*{quizfigures}     \begin{figure}     \renewcommand{\thesubfigure}{\arabic{quizcounter}}     \renewcommand{\thefigure}{}     \addtocounter{quizcounter}{1}     \subfloat[Example quizfigure 1]{\includegraphics[width=0.5\columnwidth]{example_q1.jpg}\label{quizfigure1}}     \end{figure}          \newpage          \begin{figure}     \renewcommand{\thesubfigure}{\arabic{quizcounter}}     \renewcommand{\thefigure}{}     \addtocounter{quizcounter}{1}     \subfloat[Example quizfigure 2]{\includegraphics[width=0.5\columnwidth]{example_q2.jpg}\label{quizfigure2}}     \addtocounter{quizcounter}{1}     \subfloat[Example quizfigure 3]{\includegraphics[width=0.5\columnwidth]{example_q3.jpg}\label{quizfigure3}}     \end{figure}               \end{document}


title: How to force phdthesis bib entry to expand to Ph.D. (and not to PhD) in the bbl?

text: The bib entry:               @phdthesis{w-ieaem-07,       author      = {Ron Wein},       title       = {The Integration of Exact Arrangements with Effective Motion Planning},       school      = {Tel Aviv University},       year        = {2007}     }      expands to:               \bibitem{w-ieaem-07}     R.~Wein.     \newblock {\em The Integration of Exact Arrangements with Effective Motion Planning}.     \newblock PhD thesis, Tel-Aviv University, Israel, 2007.      in the bbl file. How can I enforce               \newblock Ph.D. thesis, Tel-Aviv University, Israel, 2007.      ?


title: How to create a Markov chain with an empty node

text: I would create using `tikz` package this Markov chain but I encountered many problems. Who can post the right code to create the follow Markov chain? ![enter image description here](http://i.stack.imgur.com/fqpr8.png)


title: luaotfload can't find font "CMU Sans Serif Demi Condensed"

text: Luaotfload has problems finding a font that is installed in my texmf tree. The source:               \input luaotfload.sty     \font\myfont={CMU Sans Serif Demi Condensed} at 10pt     \myfont     foo     \bye      The font is in `texmf-dist/fonts/opentype/public/cm-unicode/cmunssdc.otf` and kpsewhich finds it. What can I do now? Edit: a sister font `{CMU Sans Serif Bold Extended Oblique}` works fine. Same directory...


title: How to have pdfLaTeX output PDF/X-3:2002 format pdfs?

text: I'm using Blurb to publish a manuscript, and they require PDF/X-3:2002 format pdfs. How do I get pdfLaTeX to output pdfs that match that specification? I'm using MiKTeX 2.9.


title: How do I get letter sized paper when I am using the res.cls margin option

text: Here is the first part of my code sorry I'm new to TeX but this is really annoying me also using the `geometry` package doesn't work and neither does               \documentclass[margin, letterpaper]{res}     ...     ...     % LaTeX resume using res.cls     \documentclass[margin]{res}     %\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)     %\usepackage{newcent}   % uses new century schoolbook postscript font           \setlength{\textwidth}{5.2in} % set width of text portion     \usepackage{enumitem}     \addtolength{\textwidth}{.5in}     \addtolength{\textheight}{2in}     \addtolength{\leftmargin}{-.1in}     \begin{document}          % Center the name over the entire width of resume:      \moveleft.5\hoffset\centerline{\large\bf Stephen Leone}          % address begins here     % Again, the address lines must be centered over entire width of resume:     \raggedright \hspace*{-\sectionwidth}{287 Warren Avenue}\hfill sml94@live.com\\     \raggedright \hspace*{-\sectionwidth} {Hawthorne, NY 10532}\hfill (914) 980-4235\\     \vspace{4mm}     % Draw a horizontal line the whole width of resume:     \moveleft\hoffset\vbox{\hrule width 505 pt height 1pt}\smallskip          \begin{resume}               \section{EDUCATION} {\sl Bachelor of Engineering} in Electrical Engineering, Expected Spring 2016\\


title: Can I make formulae thicker?

text: I've just created an SVG version with TikZ and Inkscape from an old PNG version of an image on wikipedia. This is how they look like: ![images compared](http://i.stack.imgur.com/Ymb12.png) You might notice, that the text of the left image is much easier to read. One reason is the color, but the othr is defitely the font. **How can I make the text easier to read?** I thick making the text (all formulae) bold would be a good start. If this isn't enough, it might be necessary to change from the italic font to a normal one. The current source is on github. Here is the source that was used for the image above:               \documentclass[varwidth=true, border=2pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{shapes, calc, shapes, arrows}      \usepackage{amsmath,amssymb}          \usepackage{xcolor}     \definecolor{xvectorcolor}{HTML}{77933C}          \begin{document}     \begin{tikzpicture}[]         % Punkte         \coordinate (A) at (0,0) {};         \coordinate (B) at (5,0) {};         \coordinate (C) at (2,2) {};              % Draw the triangle         \path[fill=blue!10, fill=blue!10]  (A) -- (B) -- (C) -- (A);         \draw[->, ultra thick,fill=gray!10, xvectorcolor, arrows={-latex}]  (A) -- (C) node[sloped,midway,above] {$x$};         \draw[->, ultra thick,fill=gray!10, blue!80, arrows={-latex}]  (C) -- (B) node[sloped,midway,above] {$y$};         \draw[->, ultra thick,fill=gray!10, red!80, arrows={-latex}]  (A) -- (B) node[sloped,midway,above] {$z = x + y$};         \coordinate  (A) -- (B) node[sloped,midway,below] {$\|z\| = \|x+y\| \leq \|x\| + \|y\|$};                    \end{tikzpicture}     \end{document}


title: Scaling problem with fontspec package and \footnote.

text: footnote does not scale properly with using fontspec. Any idea how to solve this problem? Already tried realscripts and xltxtra but no luck. Thanks,               \documentclass[12pt]{article}      \usepackage[english]{babel}      \usepackage{fontspec}      \setmainfont{Times New Roman}      \newcommand{\phont}[1]{\fontspec[Scale=#1]{Times New Roman}}           \begin{document}\noindent           {\phont{1} test\footnote{test}}\\      {\phont{2} test\footnote{test}}\\      {\phont{3} test\footnote{test}}\\      {\phont{1}test\textsuperscript{1}}\\      {\phont{2}test\textsuperscript{2}}\\      {\phont{3}test\textsuperscript{3}}           \end{document}


title: Getting unicode characters with TeXnicCenter

text: I would like to display some korean characters in the output of a tex file. I am using LaTeX with TeXnicCenter. I am envisioning something like               \documentclass{article}     \usepackage{...}     \begin{document}     \displayutfcharacter{12345}     \end{document}      I am preparing some slides in beamer. Once again, I do _not_ want to write any fancy characters directly into the input file. Just refer to their utf code.


title: Lyx bibliography displaying section number

text: I am using LyX to write my thesis. I am using a BibTeX Generated Bibliography (generated in Jabref) which works fine. I just have one problem, in the actual PDF, the Bibliography section after each reference, the section where that reference was cited is printed out, for example:               [1] R. Budwig, “Refractive index matching methods for liquid flow investigations,” Experiments in Fluids, vol. 17, no. 5, pp. 350–355, 1994. 2.7.4      Where "2.7.4" is the section where this reference is cited. Is this related to my overall master style file, or is it just a simple setting in LyX that I can disable?


I have a fresh install of TeX Live 2013 and am attempting to compile a file using the python package. Here is the relevant portion of the file               \begin{python}     print 'hi'     \end{python}      I've compiled successfully on my linux machine with TeX Live 2013, but cannot get my windows 7 machine to compile successfully. When I run `latex --shell- escape pytest.tex` I get an error which begins with               pytest.py: Forbidden to open for writing     ! I can't write on file `pytest.py'.     \@python ...mediate \openout \@out =\@outname .py                                                        \newlinechar ='15 \begingr...      Can anyone help me fix this so I can compile latex documents using python.sty on my windows machine? # Update So I'm pretty certain the issue has to do with permissions. If that is the case it would be really great if there were a few easy tests I could run to determine why \write18 cannot open files for writing / what it is trying to do. I've seen some problems from searching that were related to the TEXMFOUTPUT environment variable, but I don't know (1) what to set as the value of TEXMFOUTPUT in order to make sure that these temporary python files are created in the current working directory and (2) if setting TEXMFOUTPUT would have anything to do with these \write18 permission problems. Ok, one new piece of information: So, I've created a minimal example:               \documentclass[letterpaper,10pt]{article}     \usepackage{python}     \begin{document}          \begin{python}     print 'hi'     \end{python}          \end{document}       When compiled after the `! I can't write on file pytest1.py' It says (Press Enter to retry, or Control-Z to exit; default file extension is '.tex' Is this error because write18 can only write to a .tex file? At the beginning of the compile on the second line it just says ` \write18 enabled'. So it is not running with restricted \write18. I feel like I am really close to fixing this. # Solved The comment python.sty on TeX Live 2013 - Forbidden to open for writing error was exactly right. I had .py listed in my PATHEXT environment variable. Removing it allowed the file to compile without error. Just read meta.tex.SE and will credit JosephWright once answer is up.


title: Can I mark unread references?

text: When taking notes in my research notebook, I often end up citing many papers because the paper I am writing a summary of has cited them: I want to record adequate justification of each claim, and I want to be able to track down the sources if I need to in the future. However, it is not practical for me to stop and read every reference the current paper is citing. Therefore, some of my the references in my notebook I have read, and some I have not read. This bothers me, because they are not explicitly marked as such in the actual document. How can I cite my Bibtex sources (I am actually using JabRef with biber under Miktex/Texstudio) in such a way that I can distinguish those I have read from those I haven't? **What logical levels I want** Ideally, I would like three classes:   * References I have read   * References I haven't read but intend to read   * References I haven't read and don't plan to But if only binary discrimination is possible, the last two can be collapsed into a single group. **What I want it to look like** Ideally, I would like each class of reference be marked when it is referenced. For instance: > It has recently been discovered that water is wet[1] and the sky is > blue[+2], but it is still controversial whether a pound of iron is heavier > than a pound of cotton[-3]. Here, [1] is a reference I have read, [+2] is a reference I haven't read but plan to, and [-3] is a reference I don't want to read. The actual format doesn't matter, so long as it's compatible with major citation styles (numerical and author-year) - it can be stars, daggers, color, kind of bracket, font, a letter, etc. (though simple is better) Then the bibliography would look like so: > **1.** Brooks, R. Surprising fluidic characteristics of dihydrogen monoxide. > _Journal of Fluidic Chemistry_ 30 (July 2013), 40-52. > > **+2.** Brown, N., Blum, M., Maruyama, E., and Martinez, P. A novel, > powerful spectrometric method for evaluating chromaticity. _Proceedings of > the Royal Astrological Society_ (May 1999). > > **-3.** Martinez, M., and Morrison, R. T. Which one is heavier: Separating > facts from fiction. _17th International Conference of Boring Arguments_ > (Oct. 2012). Again, the exact symbols don't matter. Alternatively to this scheme, it would also be fine if it could output three separate bibliographies, with each class of reference in its own bibliography. I would prefer to be able to tell at a glance which references I've read and which ones I haven't both in the text and the bibliography(ies), but if that is hard, then it would suffice if I could by looking at the bibliography only.


title: How to a put a repeated text in the left margin of a page, like a header or footer, but on the side

text: I'm trying to copy a stationery format which puts the return address in a small block in the middle of the left margin of the page, like a header, but on the side I've tried using the everypage package, and am slowly converging on a solution, but am having trouble positioning my parbox. I was hoping somebody knew a quick and easy solution. I am using the letter package, and using pdflatex, in case that's relevant.


title: Aligning tabular inside list environment

text: Referring to my other unanswered because **edited** question here (see edit at the end), I have to open this new post. What can be done, to adjust the top of the tabular with the exercise-number at the left side (see second picture other post). Thanks in advance.


title: LaTeX Warning: There were undefined references. - path is correct

text: I am getting the following warnings when building my document:               However, there were warnings in your LaTeX source              ./100DayIntro.tex:7: LaTeX Warning: Citation `Cook2009' on page 1 undefined on input line 7.         ./100DayIntro.tex:7: LaTeX Warning: Citation `Sandy2004' on page 1 undefined on input line 7.         ./100DayIntro.tex:7: LaTeX Warning: Citation `Devaul2001' on page 1 undefined on input line 7.         ./100DayIntro.tex:7: LaTeX Warning: Citation `Donnelly2010' on page 1 undefined on input line 7.         ./100DayIntro.tex: LaTeX Warning: There were undefined references.      I have my references added:               \bibliography{../../../../Articles/library}      and if I go via the terminal to where my tex file is and enter `../../../../Articles` I can see the `library.bib` file is there and I can open it and all the references are in there. Why are these warnings showing and why are my references not being entered? I've seen elsewhere people saying to build the file a few times but that has not worked either. EDIT: Also when I type `\cite` on Sublime Text 2 I get the search bar opening to allow me to search references and it seems to be picking them all up fine. I have a different tex file in an adjacent folder that builds with references fine, when I copied the paragraph from the non-compiling file into the compiling one it will no longer add the references I just get `[?]`


title: Citation: Author-comma-year in LyX (classicthesis)

text: I am writing my thesis in LyX using `classicthesis` and have some troubles with citation style. Basically, I want to avoid ERT when citing and instead use LyX' built-in "Insert citation" to get Author-comma-year instead of Author-year (see image for details. Left: Output, Right: LyX input). ![Citation.](http://i.stack.imgur.com/o2y18.png) ## I use the following Document Settings: Document class: Classicthesis Class option:                fontsize=11pt,paper=a4,oneside,openany,titlepage,numbers=noenddot,headinclude,BCOR=5mm,footinclude=true,cleardoublepage=empty      Citation Style: Natbib; Author-year ('Numerical' is the only other option) Bibliography style: `abbrvnat` ## In preamble: % Citep               \usepackage[authoryear,round,colon]{natbib}     \bibpunct{(}{)}{;}{autheryear}{,}{;}      _I am aware that similar questions have been raised, however, those threads have not solved my problem._


title: A TeX example that fails to keep the sequence of floats

text: I wish to have a TeX example which includes text, figures and tables, where the sequence of elements in the resulting DVI is NOT as it is in the TeX file. I am looking for this so to see how well different solutions can fix this.


title: Lacking numbers in some pages

text: I´m using `report` (Koma script) and `\pagenumbering{roman}` and `\pagenumbering{arabic} \setcounter{page}{1}` in LaTeX code boxes where I need roman and arabic numbers respectively. However, some pages randomly lack numbers. Some of them have pictures but others don't. What could be the reason? Any possible solution is well appreciated :)


title: How do I get pages to have Roman numerals? How can I move a table to the left when flushleft won't work?

text: 1. How do I get pages to have Roman numerals?   2. How can I move a table to the left when flushleft won't work?


I am having the same problem as described here (i.e., I get unwanted URLs, DOIs, etc showing up in my reference section): Biblatex: Get rid of ISSN, URLs and DOIs in references Two caveats:   1. I am rather new to LaTeX so I don't understand the solution mentioned in the above link. Where should I use the options `doi=false,isbn=false,url=false`? What is "the manual" referred to in the solution? Could someone perhaps explain this more fully?   2. I don't know if my particular installation of tex and use of bibtex (not biblatex) would affect the solution. I have a default installation of TeX Live 2011 (obtained from the CTAN website). I edit and compile tex documents using vim and vim-latexsuite. The bibliography style files I would like to use is named "unsrtnat". The only thing I have in my preamble that I think might possibly affect the citations is the line: `\usepackage[square,comma,numbers,sort&compress]{natbib}` * * * I didn't see anything in a FAQ about how to continue the dialogue so here it goes.... @lockstep: thanks for the prompt reply. What you say makes sense but something is still not working. It is probably something to do with my installation/configuration. But let's deal with the easier to diagnose problem first - a problem in the .tex or .bib file. Here is my test script named "simple_example.tex"               \documentclass[a4paper,12pt]{article}     \usepackage[style=numeric-comp,doi=false]{biblatex}     \title{Here is the title.}     \author{ John S. Doe }     \begin{document}     \maketitle     \begin{abstract}         Blah blah blah-blah blah.     \end{abstract}     \section{Introduction}         Blah blah blah-blah blah \cite{AD_Smith2010}.         Blah blah blah-blah blah.     \end{document}      And here is the .bib file:               % This file was created with JabRef 2.6.     % Encoding: ISO8859_1     @ARTICLE{AD_Smith2001,     author = {Arthur D. Smith},     title = {A simple model of LaTeX References.},     journal = {Journal of LaTeX},     year = {2001},     volume = {100},     pages = {1-10},     number = {3},     keywords = {LaTeX models; biology},     doi = {10.1115/1.1372322},     owner = {me},     publisher = {Cambridge},     timestamp = {2011.04.01},     url = {http://link.aip.org/link/?PBY/321}     }          @comment{jabref-meta: selector_publisher:}     @comment{jabref-meta: selector_author:}     @comment{jabref-meta: selector_journal:}     @comment{jabref-meta: selector_keywords:}      Assuming that the above code is sound, what terminal commands would be necessary to compile the tex file and generate a pdf? Until yesterday, I used Tex Live 2009 from the Ubuntu repos and I would do something like: pdflatex, biblatex, pdflatex, pdflatex. Now that I have Tex Live 2011 installed I get an error message: biblatex command not found.


title: What do headheight, headsep, etc. do in the vmargin package?

text: In the vmargin package, the `\setmarginsrb` command sets margins, among other things, with this syntax:               \setmarginsrb{left margin}{top margin}{right margin}{bottom margin}%     {headheight}{headsep}{footheight}{footskip}      The first four parameter set the width of the left margin, etc. What do parameters `headheight`, `headsep`, `footheight`, and `footskip` do? I gather that they have something to do with placement of headers and footers, but I'm having trouble finding documentation that explains this clearly. The vmargin documentation doesn't make it very clear, and I'd like to understand what I'm doing rather than experimenting until it looks right. Feel free to send me to another question or an external a page that provides a good explanation.


title: sig-alternate class, and twocolumn unbalanced bottom alignment problem

text: EDIT: turns out the below is not really a requirement for ACM - but still a good Latex exercise, I reckon :) I have bumped into a problem with the Alternate ACM LaTeX2e Style File V2.4 (APRIL 2009 CLS) class file, and for the first time, I get a minimal example that demonstrates the issue which is simpler than my original problem :) Here, I can demonstrate the issue simply by using the `lipsum` package; the example `test.tex` file is this:               % convert -density 200x200 "test.pdf[1]" test_pg2_.png     % crop: 0x1536 to bottom; then paint 0x458 size 1700x206          \documentclass{sig-alternate}          \setlength{\pdfpagewidth}{8.5in}     \setlength{\pdfpageheight}{11in}          \usepackage{lipsum}                         \begin{document}               \title{De finibus bonorum et malorum}     \numberofauthors{1} %     \author{     \alignauthor     Dr. Reinhardt Donnerkebab     \email{rd@rd.com}     }          \maketitle          \begin{abstract}     \lipsum[1]     \end{abstract}                    \section{Praesent}          % we're on first page     % ¶.7 goes one paragraph into second page     % NOTE: the below line is changed to show effect:     \lipsum[1-10]                    \section{Vivamus}          \lipsum[21-30]               \end{document}      So, if I use the emphasized line as is, `\lipsum[1-10]`, which generates 10 paragraphs, the bottom of page 2 (of 3) is: ![test_pg2of3_1-10.png](http://i.stack.imgur.com/S2UBj.png) that is, bottom row in left column is lower than bottom row in right column. If I instead use `\lipsum[1-17]`, to generate 17 paragraphs, the bottom of page 2 (of 3) is: ![test_pg2of3_1-17.png](http://i.stack.imgur.com/jW4Hv.png) that is, bottom row in right column is lower than bottom row in left column. Finally, is I use `\lipsum[1-27]`, to generate 27 paragraphs, the bottom of page 2 (of 4) is: ![tezs_pg2of4_1-27.png](http://i.stack.imgur.com/ifZB2.png) that is, bottom rows of both columns are finally balanced - but they are on the same level as the 'higher' rows in the previous examples! ( _the red surface is added in`GIMP`, it is positioned the same in respect to bottom of page_) So, how do I persuade this class file to give me consistent, aligned (balanced) rows at the bottom of the page? NOTE: This is (I guess) slightly different from TeX Frequently Asked Questions -- question label "balance": Balancing columns at the end of a document, as this is about balancing columns in the "middle" of the document. Thanks in advance for any answers,   Cheers! EDIT: Thanks to the help in Expanding (edef) a lipsum command? and Debugging - any packages that will draw individual line (and word) frame boxes?, I believe now I have a clearer example (code below) and a question: ![sigdebug.png](http://i.stack.imgur.com/dM6KJ.png) One can notice, that as long as the first section heading doesn't kick in, text rows/lines on both left and right column are aligned. As soon as the section heading is typeset (here on left column), the lines are shifted vertically and the left column doesn't match the right one (right side after mismatch emphasized in green; this coloring done in GIMP). So I guess, the question is more exactly - how do I insert some sort of a vertical length/glue/strut(?) so that section heading is typeset in such a way, that the first next line "snaps" vertically to the position of the matching line in the other column? Code here:               \documentclass{sig-alternate}          \setlength{\pdfpagewidth}{8.5in}     \setlength{\pdfpageheight}{11in}          % \usepackage{afterpage}     \usepackage[nopar]{lipsum} % MUST be nopar here!     \usepackage[normalem]{ulem} % for \uline underline          % http://tex.stackexchange.com/questions/26806/expanding-edef-a-lipsum-command     \makeatletter     \def\unpacklipsum#1#2#3{%       \count@=#1\relax       \advance\count@\m@ne       \def#3{}%       \loop\ifnum\count@<#2\relax         \advance\count@\@ne         \edef#3{#3\csname lipsum@\romannumeral\count@\endcsname}%       \repeat}     \makeatother          % http://tex.stackexchange.com/questions/26803/debugging-any-packages-that-will-draw-individual-line-and-word-frame-boxes     \makeatletter     % from syst-ext.mkii     \long\def\ConvertToConstant#1#2#3%       {\edef\@@stringa{\expandafter\detokenize\expandafter{#2}}%        \edef\@@stringb{\expandafter\detokenize\expandafter{#3}}%        #1{\@@stringa}{\@@stringb}}          % from core-fnt.mkii     \def\doprocesswords#1 #2\od       {\ConvertToConstant\doifnot{#1}{}          {\processword{#1} %           % expandafter added           \expandafter\doprocesswords#2 \od}}          % from core-fnt.mkii     \def\processwords#1%       {\doprocesswords#1 \od\unskip}          % from syst-gen.mkii     \long\def\doifnot#1#2%       {\let\donottest\dontprocesstest        \edef\@@stringa{#1}%        \edef\@@stringb{#2}%        \let\donottest\doprocesstest        \ifx\@@stringa\@@stringb          \expandafter\gobbleoneargument        \else          \expandafter\firstofoneargument        \fi}          \long\def\gobbleoneargument#1{}     \long\def\firstofoneargument#1{#1}          \makeatother          % -----          \renewcommand{\fboxsep}{1pt}%     \let\processword\uline %\fbox                    \begin{document}               \title{De finibus bonorum et malorum}     \numberofauthors{1} %     \author{     \alignauthor     Dr. Reinhardt Donnerkebab     \email{rd@rd.com}     }          \maketitle          % if below part is before \maketitle;     % it will insert a blank first page:     \let\unexpanded\protected     \input{norm-tex.mkii} % upon \showmakeup - \normalvfil required     \input{supp-vis.mkiv}     \showmakeup                    \begin{abstract}     \lipsum[1]     \end{abstract}                    \section{Praesent}          % we're on first page     % ¶.7 goes one paragraph into second page     % \lipsum[1-7]          % \uline{\lipsum[1-10]} % cannot          \unpacklipsum{1}{1}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{2}{2}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{3}{3}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{4}{4}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{5}{5}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{6}{6}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{7}{7}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{8}{8}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{9}{9}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{10}{10}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}                    \section{Vivamus}          % \lipsum[21-30]          \unpacklipsum{21}{21}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{22}{22}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{23}{23}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{24}{24}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{25}{25}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{26}{26}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{27}{27}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{28}{28}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \unpacklipsum{29}{29}{\myflattenedlipsum}     \processwords{P \myflattenedlipsum}          \end{document}


title: Who can I get to do this?

text: I am a Senior in High School and I would love to do my Senior Project on LaTeX, but I have a problem. Who can I get to be my mentor/expert? I only know one person who knows about this but he lives like 8 states away. Is there some other person (like maybe an editor for a local paper or something) that I can ask?


title: How to set LaTeX so that PDF reader opens Beamer presentation without scrolling?

text: This question is closely related to this previous question. I am using the `beamer` package, which automatically loads the `hyperref` package, so the only thing to do is to pass additional options to `hyperref`: `\hypersetup{...}` I am using the option `pdfpagelayout=SinglePage`, but when I open the presentation file it appears **with the scrolling option enabled** , which is highly undesirable for presentations. How can I force the single page view on my presentation?


title: gnuplottex with 'subfolder' option: ps-file in subfolder not converted to pdf-file by epstopdf

text: When I compile the following code (LaTeX -> pdf) without the option 'subfolder' at the 'gnuplottex'-package, it works fine. The ps-file 'test-gnuplottex-fig1.ps', automatically created by gnuplottex, is converted to a pdf-file 'test-gnuplottex-fig1-eps-converted-to.pdf' by epstopdf, both files are in the same folder as the main tex-file.               \documentclass{scrartcl}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage[miktex,subfolder]{gnuplottex}     \usepackage{latexsym}     \usepackage{keyval}     \usepackage{ifthen}     \usepackage{moreverb}          \begin{document}          \begin{figure}%     \centering     \begin{gnuplot}[terminal=epslatex,terminaloptions=color,scale=1.0]     plot sin(x) notitle     \end{gnuplot}     \caption{}%     \label{}%     \end{figure}          \end{document}      But adding the 'subfolder' option results in the error "Undefined control sequence" at the position in the tex-file where the pdf-file gets included because there's only a ps-file in the subfolder 'gnuplottex', but no pdf-file. The error remains when I copy the pdf-file 'test-gnuplottex-fig1-eps- converted-to.pdf' to the 'gnuplottex'-subfolder. How can I get the gnuplottex package to run with the subfolder option? My system:   * MikTeX 2.9   * TeXnicCenter 2.0 Beta 2   * Windows 7   * 'gnuplottex'-package version 0.7 (2013/07/23)


title: Temporarily changing document class in LaTeX/resetting pdfLaTeX

text: How can I temporarily cause pdfLaTeX to forget everything that I've told it and start with a new document class? I've modified the example environment from the lshort document:               \newwrite\examplesx@out     \newenvironment{examplesx}{%       \begingroup% Lets Keep the Changes Local         \@bsphack         \immediate\openout \examplesx@out \jobname.exa         \let\do\@makeother\dospecials\catcode`\^^M\active         \def\verbatim@processline{%           \immediate\write\examplesx@out{\the\verbatim@line}}%         \verbatim@start       }{%       \immediate\closeout\examplesx@out\@esphack\endgroup%       \noindent\makebox[\textwidth][l]{%         \begin{minipage}[c]{0.45\textwidth}%           \small\verbatiminput{\jobname.exa}         \end{minipage}%         \hspace*{0.1\textwidth}%         \framebox{%           \begin{minipage}{0.45\textwidth}%             \small\input{\jobname.exa}%           \end{minipage}         }%       }\vspace*{\parskip}%     }      and it mostly works, but I want to be able to do something like               \begin{examplesx}     \section{Section}     \end{examplesx}      and have it show up as a section in a box. I also would like it to typeset lists using the standard `article` style, even if I use it in `beamer`


title: Customization of cv's header

text: Is it possible to reproduce this using LaTex ? How, please? ![enter image description here](http://i.stack.imgur.com/OyWzR.png) MWE:               \documentclass[11pt,a4paper]{moderncv}     \firstname{John}     \familyname{Smith}     \title{Graphic Designer}     \begin{document}     \end{document}      I'm hesitating if I build my CV using Photoshop or LaTeX. Any good advice about this, please?


title: Table of contents without \section, \chapter, etc commands

text: I was wondering if it is possible to get a list of the bookmark from this MWE:               \documentclass{article}     \usepackage{tikz}     \usepackage{blindtext}     \usepackage{hyperref}     \newcommand\mytitle[3]{\begin{tikzpicture} \node[ fill=red!80!white, minimum size=1cm]{#2\pdfbookmark[#3]{#2}{#1}};\end{tikzpicture}}     \begin{document}     \mytitle{labtwo}{lev zero}{0}      \blindtext     \mytitle{labone}{lev one}{1}     \blindtext     \mytitle{labtwo}{lev two}{2}     \blindtext     \end{document}      without using \section, \chapter, etc commands.


title: Spreading out text vertically inside a parbox or minipage automatically

text: How can `TeX` (whether it is in its own terms or in those of `LaTeX2e`) be told to typeset the text spread out vertically and evenly inside a parbox or a minipage that has been defined with a given vertical size through the optional arguments of the `parbox` command or the `minipage` environment? Please, consider that I'm talking about running text that is to be divided into vertical boxes (lines) automatically by `TeX`, as opposed to being broken into different lines manually by the author (in the latter case, I already know I could issue `\vfill` commands). Pointing to a package that does this would be acceptable as an answer. I believe this question does not require an MWE, but if so required I'd provide one.


title: Multiple equally spaced arrows from one rectangle node to another rectangle node

text: I want to connect multiple arrows from one rectangle node to the other. I tried by having a few coordinate nodes declared in parallel and connecting these coordinate nodes together to form parallel arrows and then tried to place the rectangle node exactly on top of the coordinate list but I never succeded. My solution is as shown in the first picture.   ![pic 1](http://i.stack.imgur.com/jmb4T.png)   I am trying to do this   ![enter image description here](http://i.stack.imgur.com/ueelJ.png) Thanks


title: How to quote correctly with csquotes?

text: I am unsure how to quote correctly using csquotes and `\textquote` and `\blockquote`. In the documentation I found this general advise: `\blockquote[cite][punct]{text}tpunct` but am unsure how to really use it to get consistent quotation. I am using `\autocite` with `biblatex`, so at the moment I write it like this:               \textquote{Knuth wrote in his famous book that LaTeX is superb} \autocite[86]{Knu86}.      I bet this is not the way to do it, and I am always mixing up the positions of `}`, `(Citation)` and punctuaction. How to do it correctly?


title: Why won't the quotation marks and dash be shown correctly?

text: I tried to write a document having a dash after a quotation mark. However, pdflatex has problems to show the document correctly. It looks like the second quotation mark is missing and the second dash is too short and there is an extra hyphen.               \documentclass[a4paper]{amsart}     \usepackage[utf8]{inputenc}     \usepackage[finnish]{babel}     \usepackage{amsmath}     \begin{document}     a --- b --- "a" --- b     \end{document}      The following seems to work corretly but I'm not sure if it is a proper way to solve the problem:               a --- b --- "a"\,\! --- b


title: How to suppress the space before the colon, in French language?

text: I would like to suppress the space before the colon, when using `[french]babel`. I only want to change this locally (that is not everywhere in the document, but just at some place).               \documentclass{article}     \usepackage[french]{babel}          \begin{document}     Il est 20:20.     \end{document}      ![enter image description here](http://i.stack.imgur.com/navEx.png)


title: Save a time for later use

text: In the datetime package, we have the command `\newdate` which allows you to save a date for later use. In the same line, without thinking much, I tried to use: `\newtime{examstart}{09}{00}` and was rather surprised to find that this command does not exist. A search reveals that actually there is nothing similar to `\newdate` for saving a time for later use. What do you think will be the best way to save a time for later use? Definitely, I will want to save the in some structured manner making further processing including formatting possible, just like the `\newdate` command.


title: How to name the Cited References in \{thebibliography} section in LateX and not just number the citations

text: Suppose this is the perfect syntax for citing some references in LaTeX:               \cite{HH123}      And below is the code for the references: But the problem is that I don't want the references to be in a numbered fashion but in a naming fashion. So how to go about it.               \newpage     \addcontentsline{toc}{chapter}{References}     \renewcommand{\bibname}{References}     \begin{thebibliography}{li}     \bibitem{HH123}     \end{thebibliography}      The output of the above text is: > [1] XYZ And I want them to be as: > [HH123] XYZ


title: How to point to references

text: I am writing a research paper and try to put my sources on the last page. I would like to this in such a manner, that when I point to a source in a sentence, if it is for example the third source I use, that there is a ^3 at the end of the sentence. At the reference page, at the third source, I want to have ^3: reference name.... etc. Can anybody tell me how to code this? Your help would be much appreciated.


title: Enable portuguese language in babel in a gentoo linux system

text: How can a language be enabled in babel on a gentoo linux system? texlive has been installed using the system package management software.


title: problem of (double)quote--choosing char by glyphs

text: I use `fontenc`, `fontspec` and `xelatex` to load the custom font.               \usepackage[T1]{fontenc}       \usepackage{fontspec}       \usepackage[utf8]{inputenc}       \usepackage{xunicode}       \setmainfont[Mapping=Tex-Text]{Warnock Pro}        But I have some problem about choosing char by using `\char`. The `\char"201C` is different than just type ``. `` displays correctly as what it is in glyphs. But `\char"201C` is very similar to `\textquotedblleft` (but a little bit different). That is, \char"201C is not belong to typefaces "Warnock Pro". Also, if I just type “, it is also similar to `\textquotedblleft`. How to output a char by specifying \char"xxx of custom loaded font? That is, if possible, I don't want to use `[Mapping=Tex-Text]`, and just want to type quote, or other char, such as α directly. Most chars can be displayed right. But some of them (especially quoted-related char) can't be showed right. --UPDATE Some chars, such as ‡ or †, it won't be displayed no matter I type † or \char"2020. (no matter I use Mapping=Tex-Text or not). Do I need to add some other parameters? --UPDATE 2 I found out the problems happends due to I use the package `\usepackage{xeCJK}`. However, I need it to set up English/Forein language seperately. I seems it would make \char"xxx displays the font belongs to `\setCJKmainfont`. By `xeCJK`, the char\"201C should use non-CJK font. But it seems it still use CJK-font now (even though I use `\xeCJKsetcharclass{"2000}{"2FFF}{0}`). But if I turn of xeCJK (`\makexeCJKinactive` then it displays correctly) --UPDATE 3 I add the following testing code. It seems `xeCJK` can't work correctly?               \documentclass[a4paper,10pt]{article}     \usepackage{xeCJK}     \setCJKromanfont{Verdana}     \setromanfont{Times New Roman}     \begin{document}     --\char"201C --``--“--‘‘--\char"60--\textquoteleft\\     %output: verdana--times("60)--verdana--verdana--times--verdana     \setromanfont[Mapping=tex-text]{Times New Roman}     --\char"201C --``--“--‘‘ --\char"60--\textquoteleft\\     % output: verdana, Times ("201C)--verdana--verdana--times("2018)--verdana     \xeCJKsetcharclass{"0}{"2FFF}{0} %same     --\char"201C --``--“--‘‘ --\char"60--\textquoteleft\\     \xeCJKsetcharclass{"0}{"2FFF}{1} %same     --\char"201C --``--“--‘‘ --\char"60--\textquoteleft\\     \makexeCJKinactive %all in roman     --\char"201C --``--“--‘‘ --\char"60--\textquoteleft\\     \end{document}      Thank you!


title: References to a .ods file

text: How can I create references to a `.ods` file using the command `\href{address}{name}`? Files with the `.pdf` extension work, but others do not.


title: Riemannian step functions with pst-func

text: I know from the `pstricks-add` manual, that I can get a vizualization of upper and lower sums for the Riemannian integral like this:               \documentclass{standalone}          \usepackage{auto-pst-pdf}     \usepackage{pst-func}          \psset{xunit=0.7cm,yunit=0.7cm}     \psset{algebraic,plotpoints=100}     \begin{document}     \def\f(x){-1*(-x-1)*(x-5)*x/30*(x-7)}                \begin{pspicture}(0,-2.5)(7.7,4) \psStep[StepType=infimum,linewidth=1.5pt](0,7){15}{\f(x)}             \psplot[linewidth=1.5pt]{0}{7.7}{\f(x)}             \psaxes[Dy=2]{->}(0,0)(0,-2)(7.7,4.7)[$x$,0][$y$,90]           \end{pspicture}           \begin{pspicture}(0,-2.5)(7.7,4) \psStep[StepType=supremum,linewidth=1.5pt](0,7){15}{\f(x)}             \psplot[linewidth=1.5pt]{0}{7.7}{\f(x)}             \psaxes[Dy=2]{->}(0,0)(0,-2)(7.7,4.7)[$x$,0][$y$,90]           \end{pspicture}          \end{document}      with the following output: ![enter image description here](http://i.stack.imgur.com/8UzsK.png) But how can I get the picture without the vertical lines. I.e. how can I get automatically just a plot of the approximating step-function? The solution should be compatible with the picture above since I also want to be able to add the vertical lines in a different color in a second picture.


title: How can I align text, on my title slide, from two different boxes?

text: I'm trying to match a PowerPoint template, because, well, does anybody here like PowerPoint? Swapping the images out for those that are in the public domain, it looks something like this: ![trying to match](http://i.stack.imgur.com/4SBvz.png) No, I did not intentionally choose the biggest eyesore I could find. I've gotten this far with my code: ![so far](http://i.stack.imgur.com/4GDWf.png) using this logo ![fake logo](http://i.stack.imgur.com/5CSQx.jpg) and the image **here** for the background. My MWE was made with this `.tex` file               \documentclass{beamer}         \usetheme{generic}         \title{This Is Sort Of A Descriptive Title}         \author{Author}         \institute[Inst.]{Institute}         \date{Date}     \begin{document}         \begin{frame}[plain]             \titlepage         \end{frame}     \end{document}      this and this simple `beamerthemegeneric.sty` file:               \RequirePackage{tikz}     \useinnertheme[shadow=true]{generic}     \addtobeamertemplate{title page}{         \begin{tikzpicture}[remember picture,overlay]             \node [xshift=0cm,yshift=0cm] at (current page.center) {                 \includegraphics[width=\paperwidth,height=\paperheight]{wikiCommonsPic}             };             \node [xshift=0cm,yshift=0cm] at (0.068\paperwidth,0.044\paperheight) {                 \includegraphics[width=0.27\paperwidth]{fakeLogo}             };         \end{tikzpicture}     }{}      My question lies in this `beamerinnerthemegeneric.sty` file though:               \DeclareOptionBeamer{shadow}[true]{\def\beamer@themerounded@shadow{#1}}     \ExecuteOptionsBeamer{shadow=false}     \ProcessOptionsBeamer     \setbeamercolor{title page}{fg=white}     \setbeamercolor{titlelike}{fg=white}     \defbeamertemplate*{title page}{myCustom}[1][]{         \vfill         \hbox{             \vbox{                 \begin{beamercolorbox}[wd=0.4\paperwidth,sep=8pt,left,#1]{title}                     \usebeamerfont{title}\inserttitle                     \ifx\insertsubtitle\@empty                     \else                         \vskip0.25em                         {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}                     \fi                 \end{beamercolorbox}             }             \vbox{                 \begin{beamercolorbox}[wd=0.4\paperwidth,sep=8pt,left,#1]{author}                     \usebeamerfont{author}\insertauthor                 \end{beamercolorbox}                 \begin{beamercolorbox}[wd=0.4\paperwidth,sep=8pt,left,#1]{institute}                         \usebeamerfont{institute}\insertinstitute                 \end{beamercolorbox}                 \begin{beamercolorbox}[wd=0.4\paperwidth,sep=8pt,left,#1]{date}                         \usebeamerfont{date}\insertdate                 \end{beamercolorbox}                 \ifx\inserttitlegraphic\@empty                 \else                     \vskip0.25em                     {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic}                 \fi             }         }         \vskip0pt     }     \setbeamertemplate{title page}[myCustom][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]      How can I align the top line of the title text with the top line of the author text as in the PowerPoint? I've tried inserting glue in various places, but many of those tries wouldn't even compile, saying I had an extra `}` (which didn't make sense to me).


title: Biber problem with a bib file exported by Mendeley

text: I was trying biblatex/biber in TexWorks. The LaTeX and bib file works when I use biblatex but failed to compile when I use biber. Here are my LaTeX file and the bib file. The last entry in the bib file is my entry copied from my bib file. Other entries are from the working example file.                    \documentclass[]{article}          \usepackage[autostyle]{csquotes}          \usepackage[         backend=biber,         style=authoryear-icomp,         sortlocale=de_DE,         natbib=true,         url=false,          doi=true,         eprint=false     ]{biblatex}     \addbibresource{C:/Users/guest/Desktop/testing_biblatex/biblatex-examples_local.bib}          \usepackage[]{hyperref}     \hypersetup{         colorlinks=true,     }          %% ##############################     \begin{document}         At vero eos et accusam et justo duo dolores et ea rebum~\citet{geer}.            Lorem ipsum dolor sit amet~\autocite{loh}.         This is the problematic entry \citep{Albert2007}.         \printbibliography      \end{document}                              @Thesis{geer,       author       = {de Geer, Ingrid},       title        = {Earl, Saint, Bishop, Skald~-- and Music},       type         = {phdthesis},       institution  = {Uppsala Universitet},       date         = 1985,       subtitle     = {The Orkney Earldom of the Twelfth Century. A Musicological                       Study},       location     = {Uppsala},       options      = {useprefix=false},       hyphenation  = {british},       annotation   = {This is a typical \texttt{thesis} entry for a PhD thesis. Note                       the \texttt{type} field in the database file which uses a                       localization key. Also note the format of the printed name and                       compare the \texttt{useprefix} option in the \texttt{options}                       field as well as \texttt{vangennep}},     }          @Thesis{loh,       author       = {Loh, Nin C.},       title        = {High-Resolution Micromachined Interferometric Accelerometer},       type         = {mathesis},       institution  = {Massachusetts Institute of Technology},       date         = 1992,       location     = {Cambridge, Mass.},       hyphenation  = {american},       annotation   = {This is a typical \texttt{thesis} entry for an MA thesis. Note                       the \texttt{type} field in the database file which uses a                       localization key},     }          @Article{Albert2007,     author = {Albert, I and Mavrich, TN and Tomsho, LP and Qi, J and Zanton, SJ and Schuster, S.C. and Pugh, B.F.},     issn = {0028-0836},     journal = {Nature},     keywords = {nucleosome},     mendeley-tags = {nucleosome},     number = {7135},     pages = {572--576},     publisher = {Nature Publishing Group},     title = {{Translational and rotational settings of H2A. Z nucleosomes across the Saccharomyces cerevisiae genome}},     url = {http://www.nature.com/nature/journal/v446/n7135/abs/nature05632.html},     volume = {446},     year = {2007}     }


title: Problem with an image

text: I have a template for my project and I don't know very much about LaTeX. It puts that for putting an image is:               \begin{figure}     \centering     % dummy figure replacement      \begin{tabular}{@{}c@{}}     \rule{.5\textwidth}{.5\textwidth} \    \end{tabular}     \caption{\label{fig:example}A figure}     \end{figure}      but I think that in this text is missing a command to insert the image like this: `\includegraphics[width=0.7\textwidth]{mifigure}` but if I put that, it does´t work. also if I put `\includegraphics` without `width=0.7\textwidth`, the image appear too big to the side of the document. (my image is inside a folder and it is `.png`) Now I have another problem related to this. In main.tex               \documentclass{MScthesisITEM}     \DeclareGraphicsExtensions{.pdf,.jpg,.png}     \graphicspath{{./figs/}}      In example `chapter4.tex`               \begin{figure}     \centering     % dummy figure replacement      \begin{tabular}{@{}c@{}}     \rule{.5\textwidth}{.5\textwidth} \    \end{tabular}     \caption{\label{fig:example}A figure}     \end{figure}      This shows a black image in the center of the document. In my chapter.tex               \begin{figure}     \centering     % dummy figure replacement      \begin{tabular}{@{}c@{}}     \rule{.5\textwidth}{.5\textwidth} \    \includegraphics[width=.5\linewidth]{circuitpacket}     \end{tabular}          \caption{ Explanation...}     \label{fig:comparison_circuit}     \end{figure}      I obtained the black image and my image after the black image. How can I erase the black image?


title: Rotating: Sideways figure with Section title

text: Is there any way I can fit a sideways figure using the `rotating` package onto the same page as the title of the section?               \documentclass[a4paper,12pt]{article}      \usepackage[applemac]{inputenc}     \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}          \usepackage{graphicx}     \usepackage{rotating}     \usepackage{tikz}          \begin{document}          \subsection{My sideways figure}          \begin{sidewaysfigure}[h!]     \centering     \begin{tikzpicture}[scale=4]         \fill[blue] (0,0) rectangle(2,1.5);       \end{tikzpicture}     \caption{Box plot of number of positions sent per iteration using this scheme}     \label{fig:awesome_image}     \end{sidewaysfigure}          \end{document}      P.S. Credit to @Jubobs for his example of how to use the `rotating`package (how to turn latex figure by 90 degrees alongwith the caption?).


title: Write this equation

text: I want to write this equation in this way down but I have been unsuccessful. How can I improve this codes in order to get the equation below?               \[ DeltaC{t} = \left\{ \begin{array}{ll}      -1.40- 0.588w_{t-1} - 0.5351\DeltaC_{t-1}+ 0.169\DeltaBC_{t-1} & \mbox{ if $w_{t-1}<- 0.62$} \\     -1.40 - 0.588w_{t-1} - 0.5351\DeltaC_{t-1} + 0.169\DeltaBC_{t-1} & \mbox{$w_{t-1}>0.62$}     \end{array}     \right. \]      ![enter image description here](http://i.stack.imgur.com/gcrxh.jpg)


title: Odd lines that aren't entered after the titlepage

text: I'm working on my report and after putting a lowercase in the `titlepage` name, somehow weird numbers end up underneath the titlepage on an empty page. The numbers are: `_033303333.27 04453.37 13713.48.` Does anyone have an idea how to resolve this problem. I am not an expert at LaTeX.               \documentclass[11pt, a4paper]{report}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{cite}     \usepackage{float}     \usepackage[font=footnotesize,labelfont=bf]{caption}     \usepackage{graphicx}     \usepackage{gensymb}     \usepackage{letltxmacro}     \usepackage{fancyref}     \usepackage[table]{xcolor}     \usepackage[nottoc,numbib]{tocbibind}          \title{Switching off the genes Llmg{\_}0333, Llmg{\_}0445 and Llmg{\_}1371 by using the >knock-out technique in \textit{Lactococcus lactis} strain MG1363.}     \author{Major report LABlab februari 2014\\     \\     \textit{by}\\     \\     (...)\\     (...)\\     (...)\\     (...)\\     \\     \textit{project ran at}\\     \\     (...)\\     \\     \textit{in cooperation with}\\     \\     (...)\\     \\     \textit{guided by}\\     \\     (...)}     \maketitle          \begin{document}


title: question about algorithm

text: I'd like to ask how can have an algorithm(s) flow (like text) from one column to another in a two-column document? I don't want to treat it as a one block like a figure is treated. Does anyone know how I can achieve this?


title: How can I draw tikz arrows on a calculated triangle?

text: I am going to need a lot of vector triangles and would like to do them with `TikZ`. My `TikZ` experience is close to not existing. Therefore I would like to ask you, if there is a possibility to draw calculated vector triangles (sums) with `TikZ`. What I need:   * three different coloured vectors pointing together in an triangle   * possibility to define each triangle by "angle-length-angle"   * maybe the possibility to hide one or two of these arrows.   * a centred label aligned to the middle of each vector (for mathematical expressions)   * the anchor point (0,0) should be the conjunction of `c` and `w`   * the vector sum should be `w + u` or `u + w` I want to get speed triangles (for volume flow in a machine). In the end I will position them on included images. Therefore I need the triangles, single vectors, arc vectors (direction of rotation) and vectors into the paper plane (cross in circle [into the paper] and point in circle [out of the paper]) which shall all look similar and recognizable. Are such calculations possible within `TIKZ`? Should I take an other package? How can I get plain and technical speed triangle drawings which match the real volume flow? * * * A sample: ![enter image description here](http://i.stack.imgur.com/ul7Ie.jpg) `\alpha`, `\beta` and `|u|` should be chosen by the user. The rest is calculated. Angle definitions between chosen vectors would also be great. E. g.: show angle between positive `u` and `w` as `\beta`


title: Tikz-Connecting nodes with multiple lines

text: I am trying to reproduce the following image I made in "Power point". ![enter image description here](http://i.stack.imgur.com/hHlv6.png) Although, there is no difficulty in designing the boxes, I find it rather hard to properly position the red and black lines. One solution is to use pure coordinates, but I think that there must be an easiest way to do it, since I have defined nodes. My code is                   \documentclass{standalone}         \usepackage{tikz}         \usetikzlibrary{positioning}              \begin{document}              \begin{tikzpicture}              \tikzstyle{blockYellow}=[top color=white, bottom color=yellow!60, draw=yellow!90!black!100, minimum size=1cm, rounded corners]         \tikzstyle{blockBrown}=[top color=white, bottom color=brown!60, draw=brown!90!black!100, minimum size=1cm, rounded corners]         \tikzstyle{blockBlack}=[top color=white, bottom color=black!60, draw=black!90!black!100, minimum width=1cm, minimum height=5cm, rounded corners]         \tikzstyle{blockBlue}=[top color=white, bottom color=blue!60, draw=blue!90!black!100, minimum size=1cm, rounded corners]              \pgfdeclarelayer{background}         \pgfsetlayers{background,main}            %PreAmp      \node[blockYellow] (PreAmp) {\eng{(Pre)Amp}};      %Detectors      \node [blockBrown, left of=PreAmp, node distance=3.5cm, anchor=east] (E2) {$E_2$};      \node [blockBrown, above of=E2, node distance=2cm] (E1) {$E_1$};      \node [blockBrown, below of=E2, node distance=2cm] (E3) {$E_3$};      \node [blockBrown, above of=PreAmp, node distance=3.5cm] (DE2) {$\Delta E_2$};      \node [blockBrown, left of=DE2, node distance=2cm] (DE1) {$\Delta E_1$};      \node [blockBrown, right of=DE2, node distance=2cm] (DE3) {$\Delta E_3$};      %ADC      \node [blockBlack, right of=PreAmp, node distance=10cm] (ADC) {\textcolor{white}{$ADC$}};      %Disc      \node [blockBlue, below of=PreAmp, node distance=5cm] (Disc) {$Discriminator$};      %FIFO      \node [blockBlue, right of=Disc, node distance=5cm] (FIFO) {$FIFO$};      %DGG      \node [blockBlue, below of=ADC, node distance=5cm] (DGG) {$DGG$};      %cables      \draw[red,very thick] (PreAmp)--(Disc);      %\draw[red,very thick] (PreAmp.north)--(Disc.north);      \draw[red,very thick] (Disc)--(FIFO);      \draw[red,very thick] (FIFO)--(DGG);      \draw[red,very thick] (DGG)--(ADC);      \draw[very thick] (DE2)--(PreAmp);      \draw[red, very thick] (E2)--(PreAmp);      \draw[red, very thick] ($(PreAmp.south west)!0.33!(PreAmp.south east)$)coordinate (a)--(a|-Disc.north);      \draw[red, very thick] ($(PreAmp.south west)!0.66!(PreAmp.south east)$)coordinate (b)--(b|-Disc.north);      %\draw[red, very thick] ($(Disc.north east)!0.33!(Disc.south east)$)coordinate (c)--(c|-FIFO.west);      \draw[red, very thick] ($(Disc.north east)!0.33!(Disc.south east)$) -- ($(FIFO.north west)!0.33!(FIFO.south west)$);      \draw[red, very thick] ($(Disc.north east)!0.66!(Disc.south east)$) -- ($(FIFO.north west)!0.66!(FIFO.south west)$);      \draw[very thick] ($(PreAmp.north east)!1/7!(PreAmp.south east)$)--+(0:8.525cm);%(c|-[]ADC.north);%-- ($(ADC.north west)!0.166!(ADC.south west)$);      \draw[very thick] ($(PreAmp.north east)!2/7!(PreAmp.south east)$)--+(0:8.525cm);      \draw[very thick] ($(PreAmp.north east)!3/7!(PreAmp.south east)$)--+(0:8.525cm);      \draw[red, very thick] ($(PreAmp.north east)!4/7!(PreAmp.south east)$)--+(0:8.525cm);      \draw[red, very thick] ($(PreAmp.north east)!5/7!(PreAmp.south east)$)--+(0:8.525cm);      \draw[red, very thick] ($(PreAmp.north east)!6/7!(PreAmp.south east)$)--+(0:8.525cm);         \end{tikzpicture}         \end{document}      and my output is ![enter image description here](http://i.stack.imgur.com/INIOQ.png) How to draw the lines using nodes instead of coordinates? I am thinking something like               \draw[very thick] (PreAmp.south/3)--(Disc.north/3);      i.e. not having to define the line's length, just to connect the two nodes. **Straight Lines** **EDIT** After @ClaudioFiandrino 's suggestion on a personal chat I used the following code to connect the nodes.               \draw ($(PreAmp.south west)!0.33!(PreAmp.south east)$)coordinate (a)--(a|-Disc.north);      Although this works for the vertical lines, I can't get it to work for the horizontal one because when I use               \draw ($(Disc.north east)!0.33!(Disc.south east)$)coordinate (c)--(c|-FIFO.west);      I get a vertical line as shown below in the black line. **I insist in using`calc` and `|-` because the nodes in this picture don't have the same dimensions.** ![enter image description here](http://i.stack.imgur.com/4Lk0A.png) **"Curved" Lines** The only way to reproduce the curved lines is to use relative coordinates, but I feel that there must a more convenient way. So I used               %curved cables      \draw[red, very thick] (E1.east)-- ++(1.3cm,0) -- ++(0,-1.5cm)-- ++(1.3cm,0);%($(PreAmp.north west)!1/3!(PreAmp.south west)$);      \draw[red, very thick] (E3.east)-- ++(1.3cm,0) -- ++(0,1.5cm)-- ++(1.3cm,0);      \draw[very thick] (DE3.south)-- ++(0,-1.1cm) -- ++(-1.5cm,0)-- ++(0,-1.15cm);      \draw[very thick] (DE1.south)-- ++(0,-1.1cm) -- ++(1.5cm,0)-- ++(0,-1.15cm);      and the output is ![enter image description here](http://i.stack.imgur.com/carus.png)


title: Changing "prefixes" in the Harvard bibliography

text: I am using the `harvard`-package for the bibliography of my reports, who are written i Norwegian. In my preamble i have the `babel`-package. However, when I use i.e. the `@inbook` entry in my `.bib`-file, and specify a chapter, like this:               @INBOOK{LL94,     TITLE       = {Title of the chapter},     PUBLISHER   = {Publisher},     YEAR        = {2009},     MONTH       = {September},     CHAPTER     = {E},     SERIES      = {Title of the book},     }      it is printed like this in the bibliography: > Title of the chapter (2009). Title of the book, Publisher, chapter E. I want it to say _kapittel_ instead of _chapter_. How do I do this? And also, if I use the `@techreport` entry, and don't specify any `TYPE`, it's displayed as _Technical report_. Would it also be able to translate this into the Norwegian _Teknisk rapport_?


title: Table of contents: Include part number for chapters entries

text: I have the following code               \documentclass{scrreprt}     %\usepackage[titles]{tocloft}     %\renewcommand{\cftchappresnum}{\thepart.}          \begin{document}         \tableofcontents         \part{First Part}         \chapter{First Chapter}     \end{document}      that results in the following table of contents: ![table of contents](http://pp.info.uni- karlsruhe.de/~buchwald/uploaded_images/tex_stackexchange_003.png) How can I include the number of the part into the chapter entry, i.e. get `I.1. First Chapter`? As you can see, I tried to use the `tocloft` package but without success.


title: Floats for order of figure in case of double column figure?

text: I have the following code:               \subsection{sub1}     \begin{figure*}           \centering           \includegraphics[scale=0.62]{fig1.png}           \caption{           this is fig1.           \label{fig:fig1}     }     \end{figure*}          blabla [...]          \subsection{sub2}     \begin{figure}           \centering           \includegraphics[scale=0.42]{fig2.png}           \caption{           This is fig2.           \label{fig:fig2}     }     \end{figure}          blabla[...]      I would like figure 1 to be printed before **Figure  2**, and both of them printed at the top. Please note that **Figure  1** is double column. I always end up with **Figure  1** in page three and **Figure  2** in page two. I found a lots of advice on how to use floats, for example: http://stackoverflow.com/questions/3936430/is-there-a-way-to-get-latex-to- place-figures-and-tables-in-the-order-they-are-re But they do not seem to work at all (because I have a two-column figure?). Using `[H]` has **Figure  1** moving to an otherwise blank page at the end of the document. I tried all possible variants of `[!ht]`, with no success. My hope is to get a solution that will not require me to download some hacked package (my file might have to be compiled by other people as well) or fighting with the `.cls` file (that I am not allow to change, for the same reason). Any advice?


title: Error in url reference

text: @online{amazon,         author = {Amazon.com, Inc.},         title = {Conditions of Use},         year = {2012},         url = {http://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088},         urldate = {2014-02-08},     }      http://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088 make bib gives error in = (equal sign) and also & mark. What can i do to solve this?


title: luaotfload can’t find fonts

text: I am using MiKTeX 2.9 on Windows. `luaotfload` does not find the fonts located in the MiKTeX-maintained root directory (which is `C:\Program Files (x86)\MiKTeX 2.9\` on my system) and I am therefore unable to load them directly with `LuaLaTeX` and `fontspec`. My distribution and packages seem up- to-date; where could the problem come from? Here is a minimal working example:               \documentclass{minimal}          \usepackage{fontspec}     \setmainfont{Latin Modern Roman}     \setsansfont{Latin Modern Sans}     \setmonofont{Latin Modern Mono}          \begin{document}     Hello world.     \end{document}      I know that `fontspec` loads Latin Modern fonts as the default fonts but specifying them manually should work; however, I get the following errors:               The font "LatinModernRoman" cannot be found.     The font "LatinModernSans" cannot be found.     The font "LatinModernMono" cannot be found.      It appears that, indeed, they are not in the database `otfl-names.lua`. And the situation is the same for all other fonts in MiKTeX directories. However, there is no problem with the fonts located in my local `TEXMF`: they do appear in the database and I can access them easily (well… not completely! — see my second question). I tried to play with the `OSFONTDIR` environment variable but got no luck. With XɘTeX, the previous example works fine (although fonts in local `TEXMF` “cannot be loaded by font name, only file name” [from `fontspec` documentation]). I have a second question about fonts which, this time, **are** in the database `otfl-names.lua` but can’t be accessed directly by their full name because of their unusual `subfamily` parameter. This issue is discussed here and here. It seems the situation has not changed, has it? Any clarification on those points is welcome.


title: TeX logo with LuaTeX and Linux Biolinum O/G

text: Something is wrong with TeX and LaTeX logos with the font Linux Biolinum O under LuaTeX. I am using MiKTeX 2.9 on Windows. Here is a minimal working example:               \documentclass{minimal}          \usepackage{fontspec}     \newfontfamily\LinBioO{Linux Biolinum O}     \newfontfamily\LinBioG{Linux Biolinum G}          \begin{document}     {\LinBioO\LaTeX}\quad{\LinBioG\LaTeX}     \end{document}      With LuaTeX, I get ![this](http://i.stack.imgur.com/vTUjs.png), while with XɘTeX you get the correct result: ![result](http://i.stack.imgur.com/DRC4p.png) I did not really try other fonts, except Linux Libertine O and G, which both give a correct alignment of the ‘E’. Is the problem specific to the Linux Biolinum O font?


title: Very simple left align document class

text: Is this document class an article? I can't get it left aligned. `Haldane.pdf` How can I achieve this simple style?


title: Apply macro to .tex file and get a new .tex file

text: Are there a preprocessor for TeX, like for C/C++? Are there a way to apply a macro to .tex file in order to generate new file? For example, I have macro:               \renewcommand{asd}{some phrase here}      I have a .tex file:               bla-bla \asd bla-bla      I would like to get a new .tex file where all macros are replaced, and it will have this contents:               bla-bla some phrase here bla-bla


title: How can I add a section/subsection to the TOC but not the navigation bar?

text: I'm making a presentation using Beamer, and I would like for my subsection titles to appear in the table of contents, but _not_ the navigation bar. I only know that               \subsection*{title}      does the opposite. Can anyone steer me in the right direction?


title: Removing vertical space before and after tabbing environment

text: When I write                 \begin{tabbing}       \hspace{4in}\= \kill % set up two tab positions         {\bf University }, {\it City, NW} \> PhD,         Physics (2007-2011)\\       \end{tabbing}       Methodology and numerical implementation (C++) of methods for       difficult systems\\      LaTeX creates a lot of vertical space. I don't want to use `\vspace{-Xin}` to decrease it. It's not accurate. One workaround I found is this:               \begin{ncolumn}{2}        {\bf University }, {\it City, NW} &        \hspace{1in} PhD, Physics (2007-2011)\\     \end{ncolumn}       Methodology and numerical implementation (C++) of methods for       difficult systems\\      Isn't there a cleaner way to do this using `tabbing`? This solution How to reduce space after the end of a tabbing environment didn't help. I use `res.cls` from http://www.rpi.edu/dept/arc/training/latex/resumes/


title: Control space between paragraph and example environment - amsthm package

text: Which parameter sets the spacing before and after of the example environment from amsthm library? MWE:               \documentclass{article}     \usepackage{lipsum}     \usepackage{amsthm}          \newtheorem{example}{Exam}[section]          \begin{document}            \section{My section}         \lipsum[2] % Dummy text         \begin{example}            \lipsum[1] % Dummy text            \begin{equation}              x^2 + y^2 = 1            \end{equation}         \end{example}           \lipsum[2] % Dummy text            \end{document}