title: How can I make logarithmic axes through the origin?

text: I have this graph: ![sin\(1/x\)](http://i.stack.imgur.com/4c6mO.png) The x-axis looks like it should look like:   * arrow head at its end   * label near the arrow head   * it goes through the origin But the y-axis does strange things:   * It does not go through the origin   * no arrow head   * it is at the end of the arrow head of the x-axis. I don't need the y-axis to go exactly at through origin, but it should be at the left side of the plot. Also it would be nice if the line of the y-axis was a little bit longer than `[-1, 1]`, e.g. `[-1.2, 1.2]`. How can I change to y-axis to look look like this? Here is the LaTeX-Code:               \documentclass{article}     \usepackage[pdftex,active,tightpage]{preview}     \setlength\PreviewBorder{2mm}          \usepackage{pgfplots}     \usepackage{tikz}     \usetikzlibrary{arrows, positioning, calc}          \begin{document}     \begin{preview}          \begin{tikzpicture}         \begin{axis}[             axis x line=middle,             xmode=log, % Logarithmic x axis             xmin=0.01, xmax=1, % Positive domain...             xticklabel=\pgfmathparse{exp(\tick)}\pgfmathprintnumber{\pgfmathresult},             xticklabel style={/pgf/number format/.cd,fixed}, % Use fixed point notation             width=15cm, height=8cm,     % size of the image             grid = major,             grid style={dashed, gray!30},             ymin=-1,      % start the diagram at this y-coordinate             ymax= 1,      % end   the diagram at this y-coordinate             axis background/.style={fill=white},             ylabel=y,             xlabel=x,             legend style={at={(0.9,0.95)}, anchor=north}          ]           \addplot[domain=0.01:1, red, thick,samples=2000] {-sin(deg(1/(x)))};           \legend{$\sin(\frac{1}{x})$}         \end{axis}      \end{tikzpicture}     \end{preview}     \end{document}


title: Issues with the viewer in TeXworks

text: I've just switched from mac to windows and have just started using TeXworks. I like it, but I find that the default pdf viewer is difficult to use. For example, there doesn't seem to be a key command for going to the bottom or top of the current page; I can't view pages continuously; spacebar does nothing for navigation; and trackpad functionality appears to be broken (scrolling with the trackpad causes the pages to jump around in a seemingly random fashion). Is there a list of key commands somewhere? Or is there a way of using a different default pdf viewer?


title: \begin{problem} analogue to \begin{proof}

text: I recently learned about `\begin{proof} ... \end{proof}`, which is a good environment to work in. My question is whether there exists a similar environment to state a _problem_ , or whether I can write some commands for something like that myself. Ideally, I would want something like this: `\begin{problem} Prove that $2+2 = 4$. \end{\problem}` And then it should output something like: `\\\\\noindent\textem{Problem.} Prove that $2+2 = 4$.\\\\`


title: How to insert a non-stretching but line-breaking thin space?

text: How do I insert a small space that looks like the space I get with `\,` but allows a line break like a normal space does? I.e., I'm looking for a non- stretching, non-non-breaking space whose width is identical to `\,`. I have already tried `some\,\allowbreak{}text` but, in case of a line break, this keeps the `\,` space at the end of the line which is not what I want.


title: To start pagenumbering after title and pdf-page

text: I have the structure               \documentclass{article} % use prl for onepage     \usepackage{pdfpages}     \begin{document}     \begin{titlepage}     \maketitle          \begin{tabbing}     \hspace{28em} \= \\ % increased the length to 15em     Supervisor: \> Instructor: \\     Prof. Me \> M.Sc. Tech. You \\     \end{tabbing}          \end{titlepage}          \clearpage     \includepdf[pages={1}]{abstract_1.pdf}     \clearpage     \end{document}      **How can you start pagenumbering after the title page and included pdf- page?** So at the third page should be **3**. I have at the moment **1** in the front page and **2** in the third page. So two mistakes.


title: Where do I find the license terms for fonts included in LaTeX?

text: Although an answer to the question in the header is desirable, my actual needs are a little more specific: An organization I'm involved in has adopted as one of its logotypes a capital F set in the standard `\mathfrak` font - in other words, to print our logo on a paper, one would simply do               \documentclass{article}     \usepackage{amsmath}     \begin{document}     {\huge $\mathfrak{F}$}     \end{document}      and compile with LaTeX. (This would of course still be quite small compared to sizes we normally use, but it's good enough for an MWE...) Now, we are thinking about protecting our name, our logos etc legally. Is this something we could have a right to do? We haven't figured out what license terms apply to the font, and if there would be any license costs involved with doing this, we might want to leave this logo outside the protection claim (the organization is quite small and non-profit). * * * And by the way: Yes, I understand very well that you who answer this might not be a lawyer. However, finding the actual license terms for the font would be a good place to start if/when we consult an actual laywer...


title: footnote, hyperref, tabular

text: I have many tables with footnotes inside and I need hyperref in my document. Now, the problem is that footnote in my tables does not point to the notes at the end of the page. It points to the first page or doesn't print at all. How I do to correct that ? Thanks for your help.               \documentclass[12pt]{book}     \usepackage{geometry}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[french]{babel}     \usepackage{hyperref}     \usepackage{colortbl,hhline} % au lieu de cline     \usepackage{footnote}     \hypersetup{pdfstartview={XYZ null null 0.95}}          \hypersetup{colorlinks=true, linkcolor=blue, filecolor=blue, pagecolor=blue, urlcolor=blue}          \begin{document}     Titre     \newpage     \begin{savenotes}     \begin{table}[h!]     \centering     \begin{tabular}{|>{\raggedright\arraybackslash}m{7cm}|>{\raggedright\arraybackslash}m{8cm}|}     \hline     un\footnote{note1}&deux\footnote{note2}\\     un\footnote{note3}&deux\footnote{note4}\\     \hline     \end{tabular}     \caption{Première table}     \end{table}%     \end{savenotes}          \end{document}


title: "Missing Delimiter" in Beamer-class

text: I got a problem when trying to change the fontsize within a beamer-class frame.               \documentclass{beamer}     \begin{document}     \begin{frame}{First frame}     {\big Just some content}      \end{frame}     \end{document}      This gets me a "missing delimiter (. inserted)" error. What's the problem with this? I'm using the pdfLaTex compiler. Thanks a lot!


title: endfloat on part of the document

text: Is it possible to use endfloat only on some parts of a text? For example, I would like to delay figures and table in the body of an article to after the bibliography, then in the appendix, I would like floats to stay in place. Currently I am using `\usepackage{endfloat}` to call the package and `\processdelayedfloats` and, as expected get the text figure where I want, but also the appendix figure packed at the end. Is there a way to stop delaying the float after `\processdelayedfloats`?               \documentclass[a4paper,onecolumn,12pt,draftcls]{IEEEtran}     \usepackage[nolists]{endfloat}     \usepackage{fontspec}     \begin{document}          \title{Title}     \author{Author}          \maketitle     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.          \begin{figure}     This is a figure I, I want it at processdelayedfloats position     \end{figure}          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.          \begin{figure}     This is a figure II, I want it at processdelayedfloats position     \end{figure}     Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. Nam dictum, odio nec pretium volutpat, arcu ante placerat erat, non tristique elit urna et turpis. Quisque mi metus, ornare sit amet fermentum et, tincidunt et orci. Fusce eget orci a orci congue vestibulum. Ut dolor diam, elementum et vestibulum eu, porttitor vel elit. Curabitur venenatis pulvinar tellus gravida ornare. Sed et erat faucibus nunc euismod ultricies ut id justo. Nullam cursus suscipit nisi, et ultrices justo sodales nec. Fusce venenatis facilisis lectus ac semper. Aliquam at massa ipsum. Quisque bibendum purus convallis nulla ultrices ultricies. Nullam aliquam, mi eu aliquam tincidunt, purus velit laoreet tortor, viverra pretium nisi quam vitae mi. Fusce vel volutpat elit. Nam sagittis nisi dui.          \processdelayedfloats           \appendix          \section{A1}     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.          \begin{figure}     This is figure III, I don't want it at the end but in the text     \end{figure}          \section{A2}     Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. Nam dictum, odio nec pretium volutpat, arcu ante placerat erat, non tristique elit urna et turpis. Quisque mi metus, ornare sit amet fermentum et, tincidunt et orci. Fusce eget orci a orci congue vestibulum. Ut dolor diam, elementum et vestibulum eu, porttitor vel elit. Curabitur venenatis pulvinar tellus gravida ornare. Sed et erat faucibus nunc euismod ultricies ut id justo. Nullam cursus suscipit nisi, et ultrices justo sodales nec. Fusce venenatis facilisis lectus ac semper. Aliquam at massa ipsum. Quisque bibendum purus convallis nulla ultrices ultricies. Nullam aliquam, mi eu aliquam tincidunt, purus velit laoreet tortor, viverra pretium nisi quam vitae mi. Fusce vel volutpat elit. Nam sagittis nisi dui.     \begin{figure}     This is figure IV, I don't want it at the end but in the text     \end{figure}          \end{document}


title: How can I mimic the style of 'algorithm' in an 'lstlisting' environment?

text: In my LaTeX document, I have an algorithm added using `algorithm` and `algorithmic`:               \documentclass{article}          \usepackage{graphicx}     \usepackage{apalike}     \usepackage{setspace}     \usepackage{amsmath} % assumes amsmath package installed     \usepackage{amssymb}  % assumes amsmath package installed     \usepackage{algorithm}     \usepackage[noend]{algpseudocode}           \usepackage{listings}          \begin{document}              \begin{algorithm}         \begin{algorithmic}              (algoritm)                  \end{algorithmic}         \end{algorithm}          \end{document}      Now, I need to add a XML script. I used:               \begin{lstlisting}     <?xml version="1.0" encoding="utf-8"?>     <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"        xmlns:xs="http://www.w3.org/2001/XMLSchema">       <xs:element name="goals">         <param name="first_goal" value="2_left" type="str" />         <param name="second_goal" value="1_right" type="str" />         <param name="third_goal" value="1_left" type="str" />       </xs:element>     </xs:schema>     \end{lstlisting}      Is there any way to make that script look like the algorithm does?


title: Change the \frametitle font size; height also affected?

text: I want to change only the `\frametitle` font size. Changing this, is the height of the frame title going to decrease also? Because I want that. I'm using the `Warsaw` theme.


title: Whitespace before \cite that ends a sentence or a paragraph

text: If I summarize content from another source, I'll use `\cite` to reference the author. In natural sciences it seems to be standard to use `\cite` at the end of the sentence or paragraph that containts cited content. **Example** :               Lore ipsum \cite{OtherSource}.      Is there any recommended way about whitespacing before the `\cite` command? I could go with               Lore ipsum \cite{OtherSource}.      or               Lore ipsum\cite{OtherSource}.      **Edit:** My question is about, whether I should include a whitespace or not.


title: How could I do big intersection with single $s?

text: I want to obtain similar result given by,               \[     \bigcap_{n}J_{n}     \]      by using some function between single `$` i.e. `$ function $`. Can anyone help me about it?


title: LaTeX in Word/Office 2011?

text: I remember I read somewhere out there that Office 2011 Word will support TeX (LaTeX). Is this true? I have Office 2011 on my Mac but I cannot find anything related to TeX.


title: How can I include e.g., in citep

text: When I reference some work, currently I get something like _(Jimmy and Tan, 2003)_. I want an updated `\citep` where I can use _(e.g., Jimmy and Tan, 2003)_. I should be able to call either the earlier reference such as, _(Jimmy and Tan, 2003)_ , or the updated citation _(e.g., Jimmy and Tan, 2003)_ at will. How can I achieve that? Thanks.


title: Beamer: How to remove shadows under header

text: I would like to remove the shadow (gradient fading) under the header.               \documentclass{beamer}     \usetheme{Frankfurt}     \usecolortheme{dove}     \setbeamercolor{section in head/foot}{fg=white, bg=black}     \begin{document}     \section{Introduction}           \begin{frame}{Frame}     \end{frame}     \end{document}


title: Biblatex: Adding time information to "online" field and a label in front of url

text: I am trying to add some "time" information to my online-fields in `biblatex`. I tried to use the `note` entry, but that won't work as intended. Right now I got the following:               \documentclass[a4paper,          oneside,          12pt,          bibliography=totocnumbered,          listof=totocnumbered     ]{scrreprt}     \usepackage[english, ngerman]{babel}     \usepackage[babel,german=quotes]{csquotes}     \usepackage[utf8]{inputenc}     \usepackage[automark]{scrpage2}          \usepackage[backend=biber, style=authoryear, urldate=comp, dateabbrev=false]{biblatex}     \bibliography{source}     \DeclareFieldFormat{url}{\newline\url{#1}}     \DeclareFieldFormat{urldate}{\addcomma\space#1}                    \begin{document}     Latex is science \parencite{stack}          \printbibliography          \end{document}      And the file `source.bib` looks like:               @online{stack,         author = {Stack},         title = {Why Latex is science},         month = {april},         year = 2012,         url = {www.tex.stackexchange.com},         urldate = {2013-04-29},         note = "14.44 Uhr",     }      This currently gives me the following output: ![Current output](http://i.stack.imgur.com/Wr4OJ.png) What I really need right now is this: > Stack (2012): Why Latex is science, URL: www.tex.stackexchange.com, > 29.4.2013, 14.44 Uhr. So basically:   * Add time information at the end   * Add "URL: "-label in front of the actual url   * change some periods to colon or comma Any help is appreciated! * * * ## Update 1 So I am almost there. The time is added (thanks to Guido). I only need some more `field formating`. The code part looks like this:               \documentclass[a4paper,      oneside,      12pt,      bibliography=totocnumbered,      listof=totocnumbered     ]{scrreprt}     \usepackage[english, ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[babel,german=quotes]{csquotes}     \usepackage[automark]{scrpage2}     \usepackage[]{url}               \usepackage[backend=biber, style=authoryear, urldate=comp, dateabbrev=false]{biblatex}     \bibliography{source}     %\begin{filecontents}{biblatex-dm.cfg}     %    \DeclareDatamodelFields[type=field,datatype=literal,skipout=false]{urltime}     %\end{filecontents}     \DeclareFieldFormat{date}{#1}    % Not sure with this one     \DeclareFieldFormat{title}{#1\addcomma}     \DeclareFieldFormat{url}{\newline\bibstring{URL}\addcolon\addspace\url{#1}}     \DeclareFieldFormat{urltime}{#1}     \DeclareFieldFormat{urldate}{\addcomma\space#1\addcomma\addspace\printfield{urltime}}                    \begin{document}     Latex is science \parencite{stack}          \printbibliography          \end{document}      And here's a colorful visualization of the way it should be in the end: ![how it needs to be in the end](http://i.stack.imgur.com/CntSA.png)


title: Defining constant parameters

text: Sorry for the title, I don't know how to formulate the question in short.   What I need is to define something like constant parameters, for example I have through the code this list:               \begin{list}{\labelitemi}{\leftmargin=2em}     \item a     \item b     \end{list}      I never remember this part `{\labelitemi}{\leftmargin=2em}` and I always need to copy and paste it to create a new list. In which way could I define something like               \begin{myList}     \end{myList}      such that `\begin{myList}` is actually `\begin{list}{\labelitemi}{\leftmargin=2em}`?


title: Usage of \circle command in math mode

text: I'm writing a document in LaTeX, but I can't figure out how I could write the circle symbol in order to indicate the composition of two linear maps, as LaTeX prints "error" when I compile the file. It's weird, as I have seen this in a math book, and I would like to write it in the same format in my file. Here you have what I've done so far:               \documentclass[a4paper,12pt]{article}     \usepackage{esvect}     \usepackage{amssymb}     \usepackage[utf8]{inputenc}     \usepackage[catalan]{babel}     \usepackage{enumerate}     \usepackage{color}     \usepackage{amsmath}     \usepackage{amsthm}     \newcommand{\matriu}[3]{M(#1,B_#2,B_#3)}     \newcommand{\vect}[2]{(#1_1,\dots ,#1_#2)}     \begin{document}     Siguin $B_1=\vect{u}{n}$ una base de $E_1$, $B_2=\vect{v}{m}$ una base de $E_2$ i                                                 $B_3=\vect{w}{s}$ una base de $E_3$. Llavors      \begin{equation*} \matriu{f\circle g}{1}{2}=\matriu{g}{2}{3} \phantom{.} \matriu{f,1,2}          \end{equation*}     \end{document}      Thank you very much for your attention and sorry for any inconvenience I may cause (I'm a newbie on LaTeX).


title: Is there an addon for thunderbird to render LaTeX equations on display?

text: I mean, if an email contains something like `$\mathcal L = -\frac14 F_{\mu\nu}F^{\mu\nu}$`, is there an addon to have this rendered into something nicer to read? Or one to have equations rendered to png images when sending an email?


title: A Big fancy "Q"

text: One time I remember seeing a Q ligature in `\setmainfont{EB Garamond}` (`fontspec`, EB Garamond, etc.) that involved a wonderful long swash. Now I don't know how to get it. Contrary to most other questions in this topic, how do I force this big _Q_? Here's a (not too) minimal working example:               \documentclass{article}     \usepackage[margin=0.9in]{geometry}     \usepackage{microtype}     \usepackage{fontspec}          \usepackage{xspace}     \defaultfontfeatures{SmallCapsFeatures={Renderer=Basic}}     %\setmainfont{EB Garamond}     \usepackage{multicol}          \def\cm#1{\relax}     \newcommand{\qsec}[1]{{\mbox{}\hfill\scshape #1}}     \newenvironment{qset}[1]{             \mbox{}\\\qsec{#1}\par\begin{multicols}{2}         }{             \end{multicols}         }     \newcommand{\q}[2]{{\em #1} #2\xspace}     %\def\q#1#2{{{\em #1} #2\xspace}}          \begin{document}     \fontsize{11pt}{14pt}\selectfont     \fontspec[Ligatures={Required,Common,Contextual,Discretionary,TeX},Style=Alternate]{EB Garamond}     \noindent\mbox{Simon Kuang}\hfill\mbox{\today}     \centerline{\emph{Oedipus Rex} Study Guide Questions}     \begin{qset}     {First Episode --- Oedipus, Chorus, and Tiresias}     \noindent \q{Explain the following ironies in Oedipus's speech (218--220; 236--248; 249--251; 259--265).}{Que is.}     \end{qset}     \end{document}


title: Put entire thesis on one A0 poster?

text: ### The question Is there any way to automatically scale and put an entire document on an A0 page? The thesis for which this is to be done is available as LaTeX code, as well as PDF output. Of course I know it is possible to do this manually, but I would prefer a LaTeX solution. * * * ### A small background Our university introduced a new page limit for master theses. This is not exactly appreciated by the teaching staff as well as students. To make a little joke, we decided to try to arrange an entire thesis (of approximately 200 pages) on a A0 poster, put it up in the hallway, and put a magnification glass next to it with a note saying: "New page limit introduced: 1 page maximum for all upcoming theses!"


title: Making one side of a rectangle wavy

text: Following is the MWE for putting a black rectangle on the left side of a page to hide black marks that printer leaves on every paper (? old cartridge). How can I make the open side of the rectangle wavy or ribbon-like to make it look decorative?               \documentclass[a5paper]{article}          \usepackage{tikzpagenodes}     \usetikzlibrary{calc}          \usepackage{eso-pic}     \AddToShipoutPictureBG{%     \begin{tikzpicture}[remember picture, overlay]         \fill[black] (current page.north west) --                      ($(current page.north west) +(5mm,0)$) --                      ($(current page.south west) +(5mm,0)$) --                      (current page.south west);     \end{tikzpicture}%     }          \begin{document}          \section{A section}     Some text\newpage          \section{Another section}     Some text          \end{document}


title: Beamer: how to change the mini frames from circles to rectangles

text: I would like to change the mini frames from circles to rectangles and also make the already viewed symbols the same color as the background and future symbols the color of foreground.               \documentclass{beamer}     \usetheme{Frankfurt}     \usecolortheme{dove}     \setbeamercolor{section in head/foot}{fg=white, bg=black}          \makeatletter     \setbeamertemplate{footline}     {       \leavevmode%       \hbox{%       \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%         \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}       \end{beamercolorbox}%       \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%         \usebeamerfont{title in head/foot}\insertshorttitle       \end{beamercolorbox}%       \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%         \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}         \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}        \end{beamercolorbox}}%       \vskip0pt%     }     \makeatother          \begin{document}              \section{Introduction}             \subsection{Introduction}                    \begin{frame}{Frame}                         \end{frame}                  \subsection{Introduction}                    \begin{frame}{Frame}                 \end{frame}     \end{document}


title: Make MS Word document look like it has been typeset in LaTeX

text: A few years back, I used to use LaTeX for writing reports and such, and I really liked the look of them. However, nowadays I am forced to use MS Word to write my reports, but that does not hinder me from playing around with the document layout. When I see a document typeset using LaTeX, I can often immediately spot it, I'm assuming that is because there is a nice default document template. What types of setting in MS Word 2007/2010 (fonts, margins, letter spacing etc.) would allow my documents to look similar to default LaTeX documents?


title: How to use data structures in TikZ?

text: I created a foreach statement, using `expl3` and `TikZ/pgf`:               \documentclass{article}     \usepackage{tikz}     \setlength{\parindent}{0cm}     \usepackage{expl3}     \ExplSyntaxOn     \cs_new:Npn \Counter #1 \Stopper { \tl_length:n {#1} }     \ExplSyntaxOff     \pgfmathdeclarefunction{countarray}{1}{\edef\pgfmathresult{\Counter#1\Stopper}}     \begin{document}     %array with names     \def\names{{"Katie","Frank","Laura"}}          %find the last element index     \pgfmathtruncatemacro{\Last}{countarray(\names) - 1}          %print all the elements of array     \foreach \i in {0,...,\Last} {%       \i: \pgfmathparse{\names[\i]}\pgfmathresult\\     }     \end{document}      Prints this: ![enter image description here](http://i.stack.imgur.com/8Ue1G.png) Suppose I want to use different colors for different names (or setting any other parameters). Getting something like this:               Katie\\     \textcolor{blue}{Frank}\\     Laura      ![enter image description here](http://i.stack.imgur.com/UGok4.png) In Perl, I would have done something like this:               my @data = (       {"text" => "Katie"},       {"text" => "Frank", "color" => "blue"},       {"text" => "Laura"});          foreach(@data)     {           if(defined($_->{color}))           {                 print "\textcolor\{$_->{color}\}\{$_->{text}\}";           }           else           {                 print $_->{text};           }           print "\\\\";     }      Is it possible to implement this in `expl3`?


title: How to make a CTAN package MiKTeX friendly?

text: I've heard that it is difficult to install my new `statrep` package using MiKTeX. The `dtx` file is self-extracting, but I think MiKTeX doesn't expect to work with a `dtx` file. Can someone provide a "best practice" for a CTAN package bundle that is friendly for MiKTeX, TeX Live, and manual installation? Perhaps including the *.sty files and a plain *.ins file even though the `dtx` is self-extracting?


title: \settowidth problem in tikz and in groups

text: I just came to the following problem - using `\settowidth` on a length in a `tikzpicture` resets that length to 0? Here is a (totally command-line) MWE, compiled with `pdflatex test.tex`:               \documentclass[12pt]{article}          \usepackage{tikz}          \begin{document}          \newlength{\mypgVTitleWidth}     \newbox\tbxa          \setlength{\mypgVTitleWidth}{1.0pt}     \typeout{ = A: \mypgVTitleWidth is \the\mypgVTitleWidth }          \ %          \settowidth{\mypgVTitleWidth}{MMMMM}     \typeout{ = B: \mypgVTitleWidth is \the\mypgVTitleWidth }          \setbox\tbxa\hbox{{MMMMM}}     \mypgVTitleWidth\wd\tbxa     \typeout{ = B2: \mypgVTitleWidth is \the\mypgVTitleWidth }               \fontsize{10}{10}\selectfont     \ %     \settowidth{\mypgVTitleWidth}{MMMMM}     \typeout{ = C: \mypgVTitleWidth is \the\mypgVTitleWidth }          {          \fontsize{30}{30}\selectfont     \ %     \settowidth{\mypgVTitleWidth}{MMMMM}     \typeout{ = D: \mypgVTitleWidth is \the\mypgVTitleWidth }          }          \begin{tikzpicture}     \typeout{ = E: \mypgVTitleWidth is \the\mypgVTitleWidth }          \fontsize{30}{30}\selectfont     \ %     \settowidth{\mypgVTitleWidth}{MMMMM}     \typeout{ = F: \mypgVTitleWidth is \the\mypgVTitleWidth }     \end{tikzpicture}          \end{document}      ## first problem With that code, with `tikzpicture`, the following log is generated:                = A: \mypgVTitleWidth is 1.0pt      = B: \mypgVTitleWidth is 53.83278pt      = B2: \mypgVTitleWidth is 53.83278pt      = C: \mypgVTitleWidth is 45.83344pt          LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <30> not available     (Font)              size <24.88> substituted on input line 30.           = D: \mypgVTitleWidth is 105.74562pt      = E: \mypgVTitleWidth is 45.83344pt      = F: \mypgVTitleWidth is 0.0pt      Notably, trace F shows 0.0pt. Comment out the begin and end `tikzpicture` \- and this shows in the log:                ...      = D: \mypgVTitleWidth is 105.74562pt      = E: \mypgVTitleWidth is 45.83344pt      = F: \mypgVTitleWidth is 105.74562pt      ... as expected. ## second problem If I use \fontsize..\selectfont in a group to make temporary changes to calculate a length; I get one length inside the `{...}` group - and the previous as soon as I exit:                = D: \mypgVTitleWidth is 105.74562pt      = E: \mypgVTitleWidth is 45.83344pt      ... Ok, this I guess is the very purpose of the group (to make sure changes are local) - but if I wanted to save this length for using further on in the code (say in the tikzpicture), what would I do? I tried also with second `\newlength` set to 0 and `\addtolength`, that resets itself as well. Any ideas why this is happening, and how to: get `\settowidth` working also in `tikz?` \- and read `\settowidth` from groups?


title: Load different videos into mbox by text-links

text: I integrated videos to my LaTeX document which worked perfectly:               \begin{figure} [H]         \mbox{             \movie[width=15.75cm, height=6cm, showcontrols=false, loop, poster, autostart]{}{animations/chap_04/Ani_04_01.mp4}         }         \caption{Caption}         \label{Label}     \end{figure}      Now I would like to load different video files into the `\mbox`. To load each video I would like use text-links which are placed somewhere below the video frame. Is it possible? If it is, how can I solve the problem?


title: How can I update TikZ/PGF?

text: I am searching a script that will do the following.   1. Removing all old PGF/TikZ files in my local texmf tree   2. Installation of all new PGF/TikZ in my local texmf tree of the csv repository:   PGF and TikZ -- Graphic systems for TeX --cvs   3. Creating the new user manual based on the new files (The csv version provides a `Makefile`) I have no favourite language. The best way would be to have script for the platforms Unix / Mac / Windows -- something like `biber`, whereby I use Unix. I ask this question here because it's mostly PGF/TikZ related.


title: Greek letters in acronym

text: I want to use the `acronym` package for a list of acronyms. When posting Greek letters like such:               \acro{$\nu$}{frequency}      I get errors               ! Missing \endcsname inserted      What does that mean and how do I fix that?


title: Aligning tikz nodes to tabular cells?

text: I would like to make a Zwicky Box by using `tabular` combined with an overlaying `tikzpicture`. How can I (semi-)automatically align _nodes_ to the vertical and horizontal center of their corresponding cells? I understand it would probably work with a _matrix_ which is aligned to the top left corner of the `tabular` and whose row and column seperation somehow relate to the sizes of the cells (which all have fixed width and height). ![Example of what a Zwicky Box could look like](http://i.stack.imgur.com/gb33Y.png) ![Example of how diamond nodes could look like, made in Excel](https://imageshack.us/scaled/large/153/morpho1.png) So my questions are:   1. how do I align a `tikzpicture` exactly with the upper left corner of a `tabular`?    2. how do I calculate seperation sizes of columns and rows by knowledge of cell width and height of my `tabular` environment?   3. how do I tell a node in which cell of a _matrix_ it shall be placed and that it shall be aligned to the cell's v/h center?   4. should I actually use a `tikzpicture` overlaying a `tabular`? Or would it be better to drop the `tabular` and put everything into the matrix?


title: How to create two column footnotes when using parallel package?

text: I am using `parallel` package for two column parallel texts. By default the footnotes are all formatted in one column. Is there any way to generate two column footnotes under `parallel` environment? I am not asking to separate left and right column footnotes, just feel single column too space-wasting. I've tried some packages like whatever in How to achieve a multi-column layout for footnotes?. But they don't seem to work with `parallel`. Here is my pseudo code (using `dblfnote` package)               \documentclass{article}     \usepackage[Verbose]{parallel}     \usepackage{dblfnote}          \begin{document}     \begin{Parallel}{0.45\textwidth}{0.45\textwidth}          \ParallelLText{         Aperture Science \footnote{where GLaDOS lives}     }          \ParallelRText{         We do what we must, because we can         \footnote{test subject}         \footnote{test subject}         \footnote{test subject}         \footnote{test subject}         ...     }          \end{Parallel}     \end{document}      Any thoughts or ideas would be much appreciated.


title: Modification of chapter headings

text: I'm using document class `report` and I have decided for chapter headings to use one of the predefined style of Vincent Zoonekynd's like this:               \documentclass{report}     \usepackage{xcolor}     \makeatletter     \def\LigneVerticale{\vrule height 1.5cm depth 0.9cm\hspace{0.1cm}\relax}     \def\LignesVerticales{%       \let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}     \def\GrosCarreAvecUnChiffre#1{{\setlength{\fboxsep}{-\fboxrule}%       \fbox{\color{white}%       \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}%       \rlap{\hbox to 1cm{\hss\mbox{\color{black}#1}\hss}}%       \vrule height 0pt width 1cm depth 0pt}}}     \def\@makechapterhead#1{         \vspace*{-20pt}         \hbox{%         \huge\bfseries         \LignesVerticales         \hspace{-0.5cm}%         \GrosCarreAvecUnChiffre{\thechapter}         \hspace{0.2cm}\hbox{#1}%     }\par\vskip 0.5cm}     \def\@makeschapterhead#1         \vspace*{-20pt}        {\hbox{%         \huge\bfseries         \LignesVerticales         %\hspace{0.5cm}%         \hbox{#1}%     }\par\vskip 0.3cm}     \makeatother              \begin{document}         \chapter{Here we go}         \end{document}      However, I would like to make some changes.   1. I would need to move all construction up to the page, in other words to get smaller space between the top of any page and the construction.   2. I would like to change the small box. I would prefer white square with black number (not like this one-black square with white number).


title: Making 'List of Figures' bold

text: Good day, I changed the font size of 'List of Figures' using:               \usepackage{tocloft}     \renewcommand\cftloftitlefont{\huge}      But how can I now make the title 'List of Figures' bold?


title: control textcase within section heading

text: I am using IEEE document class in conference mode. I want to use a special word: name of my protocol inside the section title. The word has the form: aBCD/eFGH. Since each word of the whole section heading is capitalized, this word also gets capitalized. I have search this site and have tried to use package `textcase` but it does not help.


title: Is it possible to draw resolution proof tree in beamer

text: How to draw a resolution tree such as the example here ![enter image description here](http://i.stack.imgur.com/RrVw2.gif)


title: How to elegantly create a pyramid hierarchy in tikz

text: I want to create a pyramid hierarchy in tikz with smooth sides (unlike this step-pyramid) and place text in each level. Shown below is how I am currently doing this, is there a better way?               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{figure}[!h]     \centering     \begin{tikzpicture}[scale=0.73]          \def \h {9};     \def \f {.7};          \foreach \y in  {0,1,2,3,4,5,6} {         \def \w { \h*\f-\y*\f };         \def \v { \y*\f-\h*\f };         \draw (\v,\y) -- (\w,\y);     }          \draw (-\h*\f,0)  -- (0,\h);     \draw (\h*\f,0)  -- (0,\h);          \node at (0,0) [above] {G};     \node at (0,1) [above] {F};     \node at (0,2) [above] {E};     \node at (0,3) [above] {D};     \node at (0,4) [above] {C};     \node at (0,5) [above] {B};     \node at (0,6) [above] {A};     \end{tikzpicture}     \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/nrt0s.jpg)


title: Multiply defined labels using hyperref

text: I'm using the stackrel command to indicate important steps in the transformation of formulas. E.g. I would write: `A\stackrel{(!)}{=}B` so that I can later explain in text why exactly `A` equals `B`. I've written a command `\refeq{foo}` now that will do this for me. So that I can use `\eqqref{foo}` later in text and it will automatically show the right number for the right equals sing in text (same as using `\label{foo}` and `ref{foo}`). I only have one problem: when I have an equation that I want to label; and within this equation is also an equals sign that I want to reference to, I get the error               Package amsmath Error: Multiple \label's: label 'rom' will be lost.      what should I do to overcome this? I want to be able to ref to an equation and to any equals sign inside this equation. Here's my working copy:               \documentclass{article}          \usepackage{hyperref}     \usepackage{amsmath}          \def\clap#1{\hbox to 0pt{\hss#1\hss}}     \def\mathllap{\mathpalette\mathllapinternal} \def\mathrlap{\mathpalette\mathrlapinternal} \def\mathclap{\mathpalette\mathclapinternal}     \def\mathllapinternal#1#2{\llap{$\mathsurround=0pt#1{#2}$}}     \def\mathrlapinternal#1#2{\rlap{$\mathsurround=0pt#1{#2}$}}     \def\mathclapinternal#1#2{\clap{$\mathsurround=0pt#1{#2}$}}          \newcounter{qc}     \setcounter{qc}{2}     \usepackage{refcount,makerobust}          \newcommand{\refeq}[1]{%      \refstepcounter{qc}\label{#1}%      \stackrel{       \stackrel{        {\text{\tiny $\mathclap{\roman{qc}}$}}       }{\text{$\downarrow$}}      }{=}%     }               \newcounter{refeqc}     \setcounter{refeqc}{0}          \newcommand{\eqqref}[1]{%      \setcounterref{refeqc}{#1}%      $(\roman{refeqc})$     }               \begin{document}                    \begin{equation}A\refeq{AB}B\label{romeo} \end{equation}     \begin{equation}R=B\refeq{BC} C\end{equation}          \eqqref{AB} in equation \ref{romeo} is the same as \eqqref{BC}          \end{document}      Any help on what to do would be great! I've tried using `protect` and `mbox`, but nothing works!


title: Where is the trailing space after TikZ node text gone?

text: I've been fiddling with `TikZ` nodes to get framed text (part of `mdframed` boxes, but that's beside the point) when I discovered something that puzzles me. If you run the code below:               \documentclass{article}     \usepackage{tikz}     \begin{document}     with \verb|TikZ|:          \tikz{\node[draw]{t};}          \tikz{\node[draw]{t~};}          \tikz{\node[draw]{t~~};}          with \verb|\framebox|:          \framebox{t}          \framebox{t~}     \end{document}      you get: ![](http://i.stack.imgur.com/l1Oto.png) I keep wondering where the first space (`~`) behind the `t` goes? On the contrary, `\framebox` seems to respect this mandatory space. What's happening here?


title: How do I create a visually pleasing tree hierarchy from a difficult to read CSV File (MySQL Export)?

text: Ok here is the deal: I am working on an endangered language project. The data is contained in a MySQL database. I can run a query to produce a hierarchy, but the hierarchy is difficult for humans to read. **See the MySQL query output here** :               "Body Parts",NULL,"Human","Kopf",NULL,NULL     "Clothing","flechten",NULL,NULL,NULL,NULL     "Numbers","zwei",NULL,NULL,NULL,NULL     "Body Parts",NULL,"Human","Haar",NULL,NULL     "Body Parts",NULL,"Human","Auge",NULL,NULL      **Output Structure** The structure of the CSV output is as follows, but the tree is arbitrarily large: `FOLDER, LEXEME, SUBFOLDER, LEXEME, SUBSUBFOLDER, LEXEME` The nodes function much like _folders_ on a filesystem. They contain both folders and files (the lexemes/words). For the example output below, I will make **folders bold** and _lexemes italicized_. This would also be good to have in the latex output, in order to differentiate between lexemes and folders (categories). **Goal** I would like the output to be ordered alphabetically (although I might be able to do work that into my query, but it would still be nice to have). Keep in mind there could be lexemes and folders inside every folder: **Visually Pleasing Tree** :   * **Body Parts**     * **Animal**     * **Human**       * _Auge_       * _Haar_       * _Kopf_   * **Clothing**     * _flechten_   * **Numbers**     * _zwei_ I should mention that I am using `UTF-8` encoding and compiling with `xelatex` with `fontspec`. This is a project dealing with phonetics, therefore the IPA will be used.


title: How to remove space surrounding a colored theorem box?

text: This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the `mdframed=...` line it works, but I also want a nice gray theorem box. Is there a workaround?               \documentclass{article}     \usepackage{xcolor}     \usepackage{amsthm}     \usepackage{thmtools}          \declaretheoremstyle[         mdframed={backgroundcolor=gray!80, hidealllines=true, innertopmargin=6pt, innerbottommargin=60pt, skipabove=\topsep, skipbelow=\topsep },         spaceabove=0pt, spacebelow=0pt      ]{mystyle}     \declaretheorem[style=mystyle]{BoxI}          \begin{document}     Text, Text, Text, Text, Text, Text, Text, Text, Text, Text, Text       \begin{BoxI}[Euclid]         Text...       \end{BoxI}     Text, Text, Text, Text, Text, Text, Text, Text, Text, Text, Text     \end{document}


title: Updated the songs package and now my songs are stretched out

text: Previously I had the `songs.sty` version from 2009, but recently updated it, to the current version of 2012. This was to add support for, among other things, UTF-8, which means that I can write the Danish letters as `æ ø å`, instead of the TeX commands. With this new updated version, my layout for my songbook is "stretched out". This first picture here, is of the old version, where the bottom lines don't align (which I don't want them to) ![Correct version](http://i.stack.imgur.com/fjnzA.png) And here is the stretched out version. It looks almost as if I had put in `\pagebreak` but there isn't. ![Stretched out version](http://i.stack.imgur.com/sofFA.png) On other pages it seems as if there is double line spacing ![Double line spacing](http://i.stack.imgur.com/9tDgp.png) The LaTeX file for the last example can be seen at https://gist.github.com/2901648.


title: Headings and advice to write a PhD in physics using LaTeX

text: I have 3 months to write a PhD thesis in French. I have a good level in LaTeX (wrote several memoires and many articles), however, I would like to know if you have any **suggestions concerning good practises for this kind of work** (more than 100 pages, figures, tables, bibliography, footnotes...) What would be great would be to share a heading file, including all packages that will be needed during the writing. I give you what I came up with:               \documentclass{book}     \usepackage[utf8]{inputenc}     \usepackage[frenchb]{babel}     \usepackage{lipsum}               \begin{document}     \chapter{Chapter 1}     \section{A section}     \lipsum[1-10]          \chapter{Chapter 2}     \section{Another section}     \lipsum[1-10]     \end{document}      I also noticed this excellent link: Jamie Stevens' Webpage Any other suggestion is welcome.


title: Underscore makes text go past end of line into margins

text: In my LaTeX document, I have a few special terms that contain underscores, such as AAA_BBB_CCC. In one case, such a token is placed at the end of the line, and for some reason it reaches into the margin. I like the fact that it the token is not divided into subtokens, but ideally, if it doesn't fit on the line, I'd like the whole term to go to the next line or in any case keep the right margin intact. I'm currently writing the terms in the source like so:               bla bla bla My\_underscored\_term bla bla bla      Is there an alternative that will keep the margin intact?


title: Blank pages between pages of the same file and between pages in different files.

text: I'm writing in the "master document" style, using the `\include` command, and between pages of the same file included and between pages of different files some blank pages appeared. What do I do to make these pages disappear? My preamble, with the include commands, is:               \documentclass[12pt,a4paper]{book}          \usepackage[brazil]{babel}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{indentfirst}     \usepackage{latexsym}     \usepackage{amsmath,amssymb,amsfonts,wasysym}     \usepackage[dvips]{graphicx}     \usepackage[top=3cm,left=3cm,right=2cm,bottom=2cm]{geometry}          \begin{document}          \input{Dedicatoria}     \input{Agradecimentos}          \tableofcontents          \input{Cap1}     \input{Cap2}     \input{Cap3}          \end{document}


title: Formula label outside of formula

text: I want to label a block of equations like that: ![Label as I want it](http://i.stack.imgur.com/YWnSM.png) The "AB" should not inflict the central alignment of the formula. I saw it a lot, but do not succeed on my own. Do I need to build boxes? I used the `alignat` environment for the formula.


title: tikz matrix: color entire row

text: Goal: I would like to color entire rows of a tikz matrix. Background: I did some googling, and I got the following. Debugging: I know what is wrong (it's only coloring the individual nodes, rather than the entire row). However, I'm not sure how to fix it. Code                   \documentclass{beamer}              \usetheme{default}              \usepackage{txfonts}         \usepackage{xcolor}         \usepackage{color}         \usepackage{tikz}         \usepackage{graphicx}              \tikzset{align at top/.style={baseline=(current bounding box.north)}}              \usetikzlibrary{positioning, calc, shapes.multipart, chains, arrows, matrix, decorations.markings}              \begin{document}                   \begin{frame}[fragile, t]{sample failure}              \begin{minipage}{\linewidth}         \vspace*{0.3cm}         \hspace*{\fill}         \begin{tikzpicture}         \matrix [matrix of nodes,           row sep = 0.5cm,           every even row/.style = { nodes={fill=blue!5}},           every odd row/.style = { nodes={fill=red!5}}           ] {           \node {blah1}; & \node{$\sum_{i=1}^n i $}; & \node{\begin{tabular}{c}line1 \\ line2 \end{tabular}}; \\           \node {blah2}; & \node{$\sum_{i=1}^n \frac{a_i}{b_i}$}; & \node{\begin{tabular}{c}expalination 2\\ exp 3 \\ exp 4\end{tabular}}; \\           \node {blah and more}; & \node{$\log ^{d+4} \frac{M}{\epsilon}$}; & \node{\begin{tabular}{c}no idea\\ and more \end{tabular}}; \\           \node {blah4}; & \node{$\log ^{d-1} \frac{M}{\epsilon}$}; & \node{\begin{tabular}{c}blah blah and more info\end{tabular}}; \\         };         \end{tikzpicture}         \hspace*{\fill}         \end{minipage}              \end{frame}         \end{document}      ![output of my code](http://i.stack.imgur.com/E8KVW.png)


title: Packages options not recognized

text: I installed TeX Live and I have a document containing this line:               \usepackage[utf8x]{inputenc}      The document used to compile years ago, but now it does not seem to find `utf8x`. What I did to install TeX Live with the network installer:               $ perl install install-pl     $ sudo tlmgr install latex latex-bin      Am I forgetting to install additionnal stuff? **SOLVED** Searching on ctan.org, I found that `utf8x.def` is in the `ucs` package, which means that I need to install it: `sudo tlmgr install ucs`. It solved my problem, but can someone confirm that it is the "standard" way to get this file? And for `utf8.def`, is it included in the `latex` package?


title: How to make my text more tasty?

text: > **This is one of my favorite problems. Enjoy!** We'd like to make holes in the text to make it look more tasty, like cheese tasty. We can find several fonts for this purpose, but we cannot (pseudo- randomly) change the location of the holes. That's pity! Could it be done in TeX to get something like this (the change of the background color should be a proof that there are holes not only circles drawn with the same color as the initial background color)? I enclose a close-up and some variants. ![mwe, close-up](http://i.stack.imgur.com/pTlP0.png) ![mwe](http://i.stack.imgur.com/Dgqf2.png) > **Update** We cannot use the background color, if there is any, for circles: we would face a problem of shaded and other type of backgrounds. I enclose an example. ![mwe with different background](http://i.stack.imgur.com/T6kgw.png) > **Minimal working example** If we need some minimal working example (let's call it a static solution), this is it using two fonts available from Dafont.com, Cheese and Mouse font and JI Swiss Cheese font. After downloading the ZIP files, unzipping them, deleting spaces in filenames and installing them we can use them (`xelatex` and `lualatex` engines can be used):               \documentclass[a4paper]{article}     \pagestyle{empty}     \usepackage{fontspec}     \begin{document}     \setmainfont{JISwissCheese.ttf}     JI Swiss Cheese\par     \setmainfont{CheeseandMouse.ttf}     Cheese and Mouse     \end{document}      ![mwe via two fonts](http://i.stack.imgur.com/R0lRB.png) > **A tip if you got stuck** Back in 2011, I've found this Q+A, it helped me a lot to solve this particular task for TeX hobbyists, How can I invert a 'clip' selection within TikZ? As long as I remember it was one of the first TeX.SX websites I visited.


title: Vertically centered and right/left/center horizontal alignment in tabular

text: I understand that vertically centering columns can be achieved by using the array package with the `m{}` column. How do I also specify horizontal alignment?               \documentclass[12pt,letterpaper]{article}          \usepackage{array}          \begin{document}     \begin{tabular}{m{5em} m{5em} m{5em}}     left & center & right     \end{document}


title: Tabbing inside itemize (or itemize inside tabbing)

text: How can I combine the tabbing and itemize environments so that I'll have a list in which I can use tabstops?               - It would be nice             foo    bar     - If I could get this working  baz    quuz      I know I could just use an ordinary tabbing environment and fake the first "column" to always display a bullet point, but I'm sure there is a more standard solution.


title: 10pt font only 9% smaller than 12pt font?

text: When changing a file with the class               \documentclass[a4paper,12pt]{extbook}      to               \documentclass[a4paper,10pt]{extbook}      I noticed that `\normalsize` parts are only about 9% smaller than before, while I expected 20%. The length of sentences also decreases only by 9%. I use the standard CM fonts. This appears to contradict the actual font sizes listed at http://en.wikibooks.org/wiki/LaTeX/Fonts#Sizing_text Can anyone please enlighten me as what is going on?


title: How could I make overlapping drawings with TikZ?

text: I want to make a big drawing with several mini-drawings overlap each other in it. How could I do this with TikZ? If I try it, you still see every line of every drawing.


title: Can't print dots after authors names when using gost780s citation package

text: Writing thesis in Math, I use ProTex and citation package called GOST (file `gost780s.bst`) by Igor Kotelnikov. Problem is when I build PDF, not all the dots after the journal author`s name initials are produced. I have tried to produce bibtex and pdflatex several times, but some citations are not OK. It looks like: Author, J. Name of work. // JF AuthorOne, JH Author // Journal name - Year.... And I need initials like J.F., J.H. Is there any PDF editor to put the dots in PDFLatex or a tool for converting MathType embedded equations to a clean Word? I have tried Infty and NitroPDF but results are not perfect. Thank you, I hope you understand the question and can help Here is `.bst` file code:               %%     %% This is file `gost780s.bst',     %% generated with the docstrip utility.     %%     %% The original source files were:     %%     %% gost.dtx  (with options: `bst,sort')     %%      %% This file may be distributed and/or modified under the     %% conditions of the LaTeX Project Public License, either version 1.3     %% of this license or (at your option) any later version.     %% The latest version of this license is in     %%   http://www.latex-project.org/lppl.txt     %% and version 1.3 or later is part of all distributions of LaTeX     %% version 2005/12/01 or later.     %%      %% This file has the LPPL maintenance status "maintained".     %% Maintained by Igor A. Kotelnikov.     %% Current version: 2012.02.02     %%      %% Please, send bug report via e-mail:     %%   kia999 at mail dot ru <Igor Kotelnikov>     %% or     %%   polyama at yahoo dot com <Maksym Polyakov>     %%                     %%     %% This bibstyle attempts to format bibliography according to     %% GOST 7.80-2000 for bibliographic records.          ENTRY       { address         annote         author         booktitle         bookauthor         chapter         edition         editor         compiler         howpublished         institution         journal         key         month         note         number         organization         pages         publisher         school         series         title         medium % new in v.2.         type         volume         year         language         booklanguage         numpages         url         urldate         isbn         doi         eprinttype   % = archivePrefix         eprintclass  % = primaryClass         eprint       }       {}       { label }          INTEGERS { output.state before.all mid.sentence after.sentence after.block     after.dblslash after.slash after.column after.semicolumn }          FUNCTION {init.state.consts}     { #0 'before.all :=       #1 'mid.sentence :=       #2 'after.sentence :=       #3 'after.block :=       #4 'after.dblslash :=       #5 'after.slash :=       #6 'after.column :=       #7 'after.semicolumn :=     }          STRINGS { s t }          STRINGS { curlanguage }          FUNCTION {change.language}     { booklanguage empty$         { "" }         { booklanguage  'curlanguage :=           "\selectlanguageifdefined{"           curlanguage *           "}" *         }       if$     }          FUNCTION {output.nonnull}     {       swap$       output.state mid.sentence =         { ", " * write$ }         { output.state after.block =             { add.period$ write$               " " quote$ "--- " * *  write$               newline$               "\newblock " write$             }             { output.state before.all =                 'write$                 { output.state after.dblslash =                     { "~//" * change.language * " " * write$ }                     { output.state after.slash =                         { "~/ " * write$ }                         { output.state after.column =                             { ": " * write$ }                             { output.state after.semicolumn =                                 { "; " * write$ }                             { add.period$ " " * write$ }                            if$                             }                           if$                         }                       if$                     }                   if$                 }               if$             }           if$           mid.sentence 'output.state :=         }       if$     }          FUNCTION {output}     { duplicate$ empty$         'pop$         'output.nonnull       if$     }          FUNCTION {output.check}     { 't :=       duplicate$ empty$         { pop$ "empty " t * " in " * cite$ * warning$ }         'output.nonnull       if$     }          FUNCTION {fin.entry}     { add.period$       write$       newline$     }          FUNCTION {new.block}     { output.state before.all =         'skip$         { after.block 'output.state := }       if$     }          FUNCTION {new.dblslash}     { output.state before.all =         'skip$         { after.dblslash 'output.state := }       if$     }          FUNCTION {new.slash}     { output.state before.all =         'skip$         { after.slash 'output.state := }       if$     }          FUNCTION {new.column}     { output.state before.all =         'skip$         { after.column 'output.state := }       if$     }          FUNCTION {new.semicolumn}     { output.state before.all =         'skip$         { after.semicolumn 'output.state := }       if$     }          FUNCTION {new.sentence}     { output.state after.block =         'skip$         { output.state before.all =             'skip$             { after.sentence 'output.state := }           if$         }       if$     }          FUNCTION {add.blank}     { " " * before.all 'output.state :=     }          FUNCTION {not}     {   { #0 }         { #1 }       if$     }          FUNCTION {and}     {   'skip$         { pop$ #0 }       if$     }          FUNCTION {or}     {   { pop$ #1 }         'skip$       if$     }          INTEGERS { len }          FUNCTION {chop.word}     { 's :=       'len :=       s #1 len substring$ =         { s len #1 + global.max$ substring$ }         's       if$     }          FUNCTION {non.stop}     { duplicate$        "}" * add.period$        #-1 #1 substring$ "." =     }          FUNCTION {new.block.checka}     { empty$         'skip$         'new.block       if$     }          FUNCTION {new.block.checkb}     { empty$       swap$ empty$       and         'skip$         'new.block       if$     }          FUNCTION {new.sentence.checka}     { empty$         'skip$         'new.sentence       if$     }          FUNCTION {new.sentence.checkb}     { empty$       swap$ empty$       and         'skip$         'new.sentence       if$     }          FUNCTION {new.dblslash.checka}     { empty$         'skip$         'new.dblslash       if$     }          FUNCTION {field.or.null}     { duplicate$ empty$         { pop$ "" }         'skip$       if$     }          FUNCTION {emphasize}     { duplicate$ empty$         { pop$ "" }         { "\BibEmph{" swap$ * "}" * }       if$     }          FUNCTION {enclose.square.brackets} { }          FUNCTION {bracify}     { duplicate$ empty$         { pop$ "{}" }         { "{" swap$ * "}" * }       if$     }     FUNCTION {bracketise}     { duplicate$ empty$         { pop$ "[]" }         { "[" swap$ * "]" * }       if$     }     FUNCTION {parenthesify}     { duplicate$ empty$         { pop$ "()" }         { "(" swap$ * ")" * }       if$     }          FUNCTION {space.word}     { " " swap$ * " " * }          FUNCTION {bbl.edby}    %  { "\bbledby{}" }     { curlanguage "english" =        {"Ed.\ by"}        { curlanguage "ukrainian" =           {"{\cyr\CYRP\cyrii\cyrd\ \cyrr\cyre\cyrd.}"}           { curlanguage "russian" =              {"{\cyr\CYRP\cyro\cyrd\ \cyrr\cyre\cyrd.}"}              { curlanguage "german" =                 { "ed." }                 {"language is not defined: " language "edby" * * warning$ "Ed.\ by"}              if$}           if$}        if$}     if$}          FUNCTION {bbl.cmplr}     { curlanguage "english" =        { "Compiler"}        { curlanguage "german" =           { "Hrsg." }           { curlanguage "ukrainian" =              {"{\cyr\CYRU\cyrk\cyrl.}"}              { curlanguage "russian" =                 {"{\cyr\CYRS\cyro\cyrs\cyrt.}"}                 {"language is not defined: " language  "cmplr" * * warning$ "Compiler"}              if$}           if$}        if$}     if$}          FUNCTION {bbl.edition} %  { "\bbledition{}" }     { curlanguage "english" =        {"edition"}        { curlanguage "ukrainian" =           {"{\cyr\cyrv\cyri\cyrd.}"}           { curlanguage "russian" =              {"{\cyr\cyri\cyrz\cyrd.}"}              { curlanguage "german" =                 {" {aus.}" } %%%% { "Aufl." } ??                 { curlanguage "italian" =                    {"edizione"}                    { curlanguage "french" =                       {"\'{e}dition"}                       {"language is not defined: " language  "edition" * * warning$ "edition"}                    if$}                 if$}              if$}           if$}        if$}     if$}          FUNCTION {bbl.vvolume} %  { "\bblVolume{}" }     { curlanguage "english" = curlanguage "french" = or curlanguage "italian" = or        {"Volume"}        { curlanguage "ukrainian" = curlanguage "russian" = or           { "\CYRT\cyro\cyrm" }           { curlanguage "german" =              {"{Band}"} %%%% { "Volumen" }              {"language is not defined: " language  "vvolume" * * warning$ "Volume"}           if$}        if$}     if$}          FUNCTION {bbl.vvol}    %  { "\bblVol{}" }     { curlanguage "english" = curlanguage "french" = or curlanguage "italian" = or        {"Vol."}        { curlanguage "ukrainian" = curlanguage "russian" = or           {"\CYRT."}           { curlanguage "german" =              {"{Bd.}"} %%%% { "Vol." }              {"language is not defined: " language  "vvol" * * warning$ "Vol."}           if$}        if$}     if$}          FUNCTION {bbl.iissue}  %  { "\bblIssue{}" }     { curlanguage "english" =        {"Issue"}        { curlanguage "ukrainian" =           {"\CYRV\cyri\cyrp\cyru\cyrs\cyrk"}           { curlanguage "russian" =              {"\CYRV\cyrery\cyrp\cyru\cyrs\cyrk"}              { curlanguage "german" =                 {"{Heft}"} %%%% { "Ausgabe" }                 {"language is not defined: " language "iissue" * * warning$ "Issue"}              if$}           if$}        if$}     if$}          FUNCTION {bbl.iiss}  %  { "\bblIss{}" }     { curlanguage "english" =        {"Iss."}        { curlanguage "ukrainian" =           {"\CYRV\cyri\cyrp."}           { curlanguage "russian" =              {"\CYRV\cyrery\cyrp."}              { curlanguage "german" =                 {"{H.}"}                 {"language is not defined: " language "iiss" * * warning$ "Iss."}              if$}           if$}        if$}     if$}          FUNCTION {bbl.of}      %  { "\bblof{}" }     { curlanguage "english" =        {"of"}        { curlanguage "german" =           { "von" }           { curlanguage "ukrainian" =              { "{\cyr\cyrii\cyrz}" }              { curlanguage "russian" =                 { "{\cyr\cyri\cyrz}" }                 {"language is not defined: " language "of" * * warning$ "of"}              if$}           if$}        if$}     if$}          FUNCTION {bbl.etal}      %  { "\bblof{}" }     { curlanguage "english" =        {"et~al."}        { curlanguage "german" =           { "u.~a." }           { curlanguage "ukrainian" =              {"{\cyr\cyrt\cyra~\cyrii\cyrn.}"}              { curlanguage "russian" =                 {"{\cyr\cyri~\cyrd\cyrr.}"}                 {"language is not defined: " language  "et~al" * * warning$ "et~al."}              if$}           if$}        if$}     if$}               FUNCTION {bbl.nnumber} %  { "\bblNumber{}" }     { curlanguage "english" =        {"Number"}        { curlanguage "ukrainian" = curlanguage "russian" = or           { "\CYRN\cyro\cyrm\cyre\cyrr" }           { curlanguage "german" =              {"{Heft}"} %%% { "Anzahl" }              {"language is not defined: " language  "nnumber" * * warning$ "Number"}           if$}        if$}     if$}          FUNCTION {bbl.number}  %  { "\bblnumber{}" }     { curlanguage "english" =        {"number"}        { curlanguage "ukrainian" = curlanguage "russian" = or           {"{\cyr\cyrn\cyro\cyrm\cyre\cyrr}"}           { curlanguage "german" =              {"{Heft}"} %%% { "anzahl" }???              {"language is not defined: " language  "number" * * warning$ "number"}           if$}        if$}     if$}          FUNCTION {bbl.nr}     %   { "\bblno{}" }     { curlanguage "english" =        {"№"}                     %change here        { curlanguage "italian" =           { "no" }           { curlanguage "ukrainian" = curlanguage "russian" = or              { "{\cyr\textnumero}" }              { curlanguage "german" =                 {"{H.}"} %%% { "an." }                 {"language is not defined: " language "nr" * * warning$ "№"}              if$}           if$}        if$}     if$}          FUNCTION {bbl.nnr}     %   { "\bblno{}" }     { curlanguage "english" =        {"№"}                            % сhange here        { curlanguage "ukrainian" = curlanguage "russian" = or           { "{\cyr\textnumero}" }           { curlanguage "german" =              {"{H.}"} %%% { "an." }              {"language is not defined: " language  "nnr" * * warning$ "№"}           if$}        if$}     if$}          FUNCTION {bbl.in}    %    { "\bblin{}" }     { curlanguage "english" = curlanguage "german" = or        {"in"}        { curlanguage "ukrainian" = curlanguage "russian" = or           { "{\cyr\cyrv}" }           {"language is not defined: " language  "in" * * warning$ "in"}        if$}     if$}          FUNCTION {bbl.iin}  %     { "\bblIn{}" }     { curlanguage "english" = curlanguage "german" = or        {"In"}        { curlanguage "ukrainian" = curlanguage "russian" = or           { "\CYRV" }           {"language is not defined: " language  "iin" * * warning$ "In"}        if$}     if$}          FUNCTION {bbl.pages}    % { "\bblpp." }     { curlanguage "english" = curlanguage "french" = or curlanguage "italian" = or        {"p."} %%% {"pp."}        { curlanguage "ukrainian" = curlanguage "russian" = or           {"{\cyr\cyrs.}"}           { curlanguage "german" =              {"S."} %%%% { "s." }              {"language is not defined: " language  "pages" * * warning$ "p."}           if$}        if$}     if$}          FUNCTION {bbl.page}   %   { "\bblp."     { curlanguage "english" = curlanguage "french" = or curlanguage "italian" = or        {"p."}        { curlanguage "ukrainian" = curlanguage "russian" = or           {"{\cyr\cyrs.}"}           { curlanguage "german" =              {"S."} %%%% { "s." }              {"language is not defined: " language  "page" * * warning$ "p."}           if$}        if$}     if$}          FUNCTION {bbl.ppages}%    { "\bblPp." }     { curlanguage "english" = curlanguage "french" = or curlanguage "italian" = or        {"P."} %%%% { "Pp." }        { curlanguage "ukrainian" = curlanguage "russian" = or           {"{\cyr\CYRS.}"}           { curlanguage "german" =              {"S."}              {"language is not defined: " language "ppages" * * warning$ "P."}           if$}        if$}     if$}          FUNCTION {bbl.ppage}  %   { "\bblP." }     { curlanguage "english" = curlanguage "french" = or curlanguage "italian" = or        {"P."}        { curlanguage "ukrainian" = curlanguage "russian" = or           {"{\cyr\CYRS.}"}           { curlanguage "german" =              {"S."}              {"language is not defined: " language  "ppage" * * warning$ "P."}           if$}        if$}     if$}          FUNCTION {bbl.urldate}     { curlanguage "english" =        {"online; accessed"}        { curlanguage "ukrainian" =           { "{\cyrd\cyra\cyrt\cyra\ \cyrz\cyrv\cyre\cyrr\cyrn\cyre\cyrn\cyrn\cyrya}" }           { curlanguage "russian" =              { "{\cyrd\cyra\cyrt\cyra\ \cyro\cyrb\cyrr\cyra\cyrshch\cyre\cyrn\cyri\cyrya}" }              { curlanguage "german" =                 { "{online; abgerufen}" }                 { "language is not defined: " language "urldate" * * warning$ "online; accessed" }              if$}           if$}        if$}     if$}          FUNCTION {bbl.techreport} % rename to bbl.techreport     { curlanguage "english" =        { "Rep." }        { curlanguage "german" =           { "Bericht" }           { curlanguage "russian" =              { "{\cyr\CYRO\cyrt\cyrch\cyre\cyrt}" }              { "language is not defined: " language "techrep" * * warning$ "Rep." }           if$}        if$}     if$}          FUNCTION {bbl.mthesis}     { curlanguage "english" =        { "Master's thesis" }        { curlanguage "german" =           { "Diss.~Mag." }           { curlanguage "russian" =             { "{\cyr\CYRK\cyrv\cyra\cyrl\cyri\cyrf\cyri\cyrk\cyra\cyrc\cyri"               "\cyro\cyrn\cyrn\cyra\cyrya\ \cyrr\cyra\cyrb\cyro\cyrt\cyra\ " *               "\cyrm\cyra\cyrg\cyri\cyrs\cyrt\cyrr\cyra}" * }              { "language is not defined: " language "mthesis" * * warning$ "Master's thesis" }           if$}        if$}     if$}          FUNCTION {bbl.phdthesis}     { curlanguage "english" =        { "Ph.\,D. thesis" }        { curlanguage "german" =           { "Diss.~Ph.\,D." }           { curlanguage "russian" =              { "{\cyr\CYRD\cyri\cyrs\cyrs\ldots\ \cyrk\cyra\cyrn\cyrd\cyri"                "\cyrd\cyra\cyrt\cyra\ \cyrn\cyra\cyru\cyrk}" * }              { curlanguage "french" =                { "Th\`{e}se de doctorat" }                { "language is not defined: " language "phdthesis" * * warning$ "Ph.\,D. thesis" }              if$}           if$}        if$}     if$}          FUNCTION {bbl.dscithesis}     { curlanguage "english" =        { "Dr.\,Sci. dissertation" }        { curlanguage "german" =           { "Diss.~Dr." }           { curlanguage "russian" =              { "{\cyr\CYRD\cyri\cyrs\cyrs\ldots\ \cyrd\cyro\cyrk\cyrt\cyro"                "\cyrr\cyra\ \cyrn\cyra\cyru\cyrk}" * }              { "language is not defined: " language "dscithesis" * * warning$ "Dr.\,Sci. dissertation" }           if$}        if$}     if$}          FUNCTION {bbl.nnoaddress}     { curlanguage "english" =        { "S.\ l." }        { curlanguage "russian" =           { "{\cyr\CYRB.\ \cyrm.}" }           { "language is not defined: " language "nnoaddress" * * warning$ "S.\ l." }        if$}     if$}          FUNCTION {bbl.nopublisher}     { curlanguage "english" =        { "s.\ n." }        { curlanguage "russian" =           { "{\cyr\cyrb.\ \cyri.}" }           { "language is not defined: " language "nnopublisher" * * warning$ "s.\ n." }        if$}     if$}          FUNCTION {bbl.nnopublisher}     { curlanguage "english" =        { "S.\ n." }        { curlanguage "russian" =           { "{\cyr\CYRB.\ \cyri.}" }           { "language is not defined: " language "nnopublisher" * * warning$ "S.\ n." }        if$}     if$}          FUNCTION {bbl.medium.text}     { curlanguage "english" =        { "Text" }        { curlanguage "russian" = curlanguage "ukrainian" = or           { "{\cyr\CYRT\cyre\cyrk\cyrs\cyrt}" }           { "language is not defined: " language "medium" * * warning$ "Text" }        if$}     if$}          FUNCTION {bbl.medium.elres}     { curlanguage "english" =        { "Electronic resource" }        { curlanguage "russian" =           { "{\cyr\CYREREV\cyrl\cyre\cyrk\cyrt\cyrr\cyro\cyrn\cyrn\cyrery\cyrishrt\ \cyrr\cyre\cyrs\cyru\cyrr\cyrs}" }           { curlanguage "ukrainian" =             { "{\cyr\CYRE\cyrl\cyre\cyrk\cyrt\cyrr\cyro\cyrn\cyrn\cyri\cyrishrt\ \cyrr\cyre\cyrs\cyru\cyrr\cyrs}" }             { "language is not defined: " language "medium" * * warning$ "Electronic resource" }           if$}        if$}     if$}          FUNCTION {bbl.chief}     { curlanguage "english" =        { "chief" }        { curlanguage "russian" =           { "\cyrr\cyru\cyrk." }           { curlanguage "ukrainian" =             { "\cyrr\cyru\cyrk." }             { "language is not defined: " language "chief" * * warning$ "chief" }           if$}        if$}     if$}          FUNCTION {bbl.executor}     { curlanguage "english" =        { "Executor" }        { curlanguage "russian" =           { "{\cyr\cyri\cyrs\cyrp\cyro\cyrl\cyrn.}" }           { curlanguage "ukrainian" =             { "{\cyr\cyrv\cyri\cyrk\cyro\cyrn\cyra\cyrv\cyre\cyrc\cyrsftsn}" }             { "language is not defined: " language "medium" * * warning$ "Executor" }           if$}        if$}     if$}          FUNCTION {bbl.medium}     { type$ "online" =        { bbl.medium.elres }        { bbl.medium.text  }     if$}          INTEGERS { nameptr namesleft numnames }               FUNCTION {format.names}     {       #1 "{vv~}{ll}{~jj}{,~f.}" format.name$     }               FUNCTION {format.names.rev}     {       's :=       #1 'nameptr :=       s num.names$ 'numnames :=       numnames 'namesleft :=         { namesleft #0 > }         { s nameptr           %"{f.}{~vv}{~ll}{, jj}" format.name$ 't :=           "{ff}{~vv}{~ll}{, jj}" format.name$ 't :=           nameptr #1 >             { nameptr #4 =               numnames #4 > and                 { "others" 't :=                   #1 'namesleft := }                 'skip$               if$               namesleft #1 >                 { ", " * t * }                 { t "others" =               t "~others" =               or                     { " " * bbl.etal * }                     { ", " * t * }                   if$                 }               if$             }             't           if$           nameptr #1 + 'nameptr :=           namesleft #1 - 'namesleft :=         }       while$     }               FUNCTION {format.authors}     { author empty$         { "" }         { author format.names emphasize}       if$     }               FUNCTION {format.bookauthors}     { bookauthor empty$         { "" }         { bookauthor format.names}       if$     }          FUNCTION {format.authors.after}     { author empty$         { "" }         { author format.names.rev}       if$     }          FUNCTION {format.bookauthors.after}     { bookauthor empty$         { "" }         { bookauthor format.names.rev}% always cuts to 4 persons       if$     }          FUNCTION {format.editors.after}     { editor empty$         { "" }         { bbl.edby "\ " * editor format.names.rev * }       if$     }          FUNCTION {format.chief.after}     { editor empty$         { "" }         { bbl.chief "\ " * editor format.names.rev * }       if$     }          FUNCTION {format.executor.after}     { author empty$         { "" }         { bbl.executor ": " * author format.names.rev * }       if$     }          FUNCTION {format.compiler.after}     { compiler empty$         { "" }         { bbl.cmplr "\ " * compiler format.names.rev * }       if$     }          FUNCTION {format.title}     { title empty$         { "" }         { title "t" change.case$ }       if$     }          FUNCTION {format.date}     { year empty$         { month empty$             { "" }             { "there's a month but no year in " cite$ * warning$               month             }           if$         }         { month empty$             'year             { year ". " quote$ "--- " month * * * * }           if$         }       if$     }          FUNCTION {output.address.publisher}     {       address empty$         'skip$         { address output           publisher empty$             'skip$             { new.column }           if$         }       if$       publisher output     }          FUNCTION {output.address.publisher.date}     {       output.address.publisher       format.date output     }          FUNCTION {output.bibitem}     { newline$       "\bibitem" write$       cite$ bracify write$       newline$       language empty$         { "english" 'curlanguage := }         { language  'curlanguage := }       if$       "\selectlanguageifdefined" curlanguage bracify * write$       newline$       ""       before.all 'output.state :=     }          FUNCTION {n.dashify}     { 't :=       ""         { t empty$ not }         { t #1 #1 substring$ "-" =             { t #1 #2 substring$ "--" = not                 { "--" *                   t #2 global.max$ substring$ 't :=                 }                 {   { t #1 #1 substring$ "-" = }                     { "-" *                       t #2 global.max$ substring$ 't :=                     }                   while$                 }               if$             }             { t #1 #1 substring$ *               t #2 global.max$ substring$ 't :=             }           if$         }       while$     }


title: Two enumerated lists side by side

text: I am trying to replicate the image below, but what I currently have gives awkward spacing on the two lists. Could anyone advise me as to how I could mimic the picture? ![enter image description here](http://i.stack.imgur.com/cfiJa.png)               \documentclass[12pt,letterpaper]{article}          \usepackage{enumerate,multicol}     \usepackage{amsmath, amssymb, amsthm}          \begin{document}          \begin{multicols}{2}     \textbf{\emph{Possible Structural Properties}}     \begin{enumerate}[1.]     \item The set has 4 elements.     \item The operation is commutative.     \item $x \ast x = x$ for all $x \in S$     \item The equation $a \ast x = b$ has a solution $x$ in $S$ for all $a,b \in S$.     \end{enumerate}     \textbf{\emph{Possible Nonstructural Properties}}     \begin{enumerate}[a.]     \item The number 4 is an element.     \item The operation is called ``addition.''     \item The elements of $S$ are matrices.     \item $S$ is a subset of $\mathbb{C}$.     \end{enumerate}     \end{multicols}          \end{document}


title: Adjust table record in center

text: i have this latex table               \begin{table}[H]       \centering       \footnotesize         \begin{tabular}{p{3.5cm}p{3.5cm}p{3.5cm}}         \hline         Metric& cca vs. cca1 &cca vs. King James Bible\\[0.1cm]         \hline         Average codelength  & 0.84  & 1.84 \\[0.1cm]         Top1 unigram & 7.65  & 10.52 \\[0.1cm]         Top5 unigram & 6.94  & 10.05 \\[0.1cm]         Top10 unigram & 6.38  & 9.72 \\[0.1cm]         Top100 unigram & 4.88  & 7.54 \\[0.1cm]         Top1 bigram & 8.52  & 11.25 \\[0.1cm]         Top5 bigram & 6.68  & 10.23 \\[0.1cm]         Top10 bigram & 5.94  & 9.38 \\[0.1cm]         Top100 bigram & 4.17  & 7.19 \\[0.1cm]         Top1 trigram & 5.4   & 9.56 \\[0.1cm]         Top5 trigram & 4.77  & 8.68 \\[0.1cm]         Top10 trigram & 4.6   & 8.17 \\[0.1cm]         Top100 trigram & 3.58  & 6.3 \\[0.1cm]         \% of words in 1st corpus not in 2nd corpus &6.05  & 8.73 \\[0.1cm]         \% of words in 2nd corpus not in 1st  corpus & 5.54  & 2.94 \\[0.1cm]         Top 10 unseen words in 1st corpus & Mr. Mrs. Dr. Mr SIC J. St. Colour Fig. R. & LORD Shalt and was are hast Is Were be \\[0.1cm]         Top 10 unseen words in 2nd  corpus & Mr\& **f Mrs\& **h Program Dr\& <The **f. Center St\& & Has Mr\& American Mrs\& Around during United Does don't didn't \\[0.1cm]         \end{tabular}%       \label{tab:addlabel}%     \end{table}%      how i can center the record of this table to have better table shape especially i have some record with multi line text as bellow ? ![table](http://i.stack.imgur.com/IEIxP.png)


title: Weird Missing $ inserted error

text: This is what I wrote in my `.tex` file:               <\emph{Technician, View, Business_Plan, NULL}>$\rightarrow$ \emph{Deny}     <\emph{HR, View, Business_Plan, NULL}>$\rightarrow$ \emph{Deny}     <\emph{Manager, View, Business_Plan, NULL}>$\rightarrow$ \emph{Permit}      However, I got following compiling mistake:               ! Missing $ inserted.     <inserted text>                      $     l.303 ...ph{Technician, View, Business_Plan, NULL}                                                       >$\rightarrow$ \emph{Deny}...          ?           Process has been terminated ...      I am almost mad by this weird error!!! Could anybody help me??


title: How to Generate Embedded Fonts Using Latex?

text: \documentclass[conference, 10pt, letterpaper, twoside, twocolumn, final]{IEEEtran}      \usepackage{pablo_ieee}      \makeglossary      \IEEEoverridecommandlockouts      \ifCLASSINFOpdf      \else      \fi      \hyphenation{}      \begin{document}      \sloppy      \title{A Sample Article}       \author{      \IEEEauthorblockN{Author 1}      \IEEEauthorblockA{}       \and      \IEEEauthorblockN{Author 2}      \IEEEauthorblockA{}               }      \maketitle      \end{document}      This is how my document skeleton looks like, an IEEE conference template. The problem is whenever I try to submit it to the EDAS interface, it gives an error > Publishers require that PDF fonts are embedded so that documents can be > printed everywhere; one or more of your document fonts are not embedded Even though I used the same template earlier in the site, I never faced a problem like this. Please help. The document contains a lot of mathematics and Greek letters, but the same is true for earlier manuscripts as well. From the document properties of acrobat readers, I see the non-embedded fonts are Helvetica, symbol, times bold, times italic etc. Any way to deal with the problem?


title: Why don't my big arrows appear at the end of the line segments and how can I fix this?

text: \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.markings}     \begin{document}     \begin{tikzpicture}[scale=1.5,line width=1]     %     \tikzstyle{a}=[         decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}},         postaction={decorate},         shorten >=9pt, shorten <=9pt,         ]      \coordinate (u1) at (1,1);     \coordinate (u2) at (2,2);     \coordinate (u3) at (1,0);     \node[outer sep=10pt,rectangle,draw] at (u1) {\qquad};     \node[outer sep=10pt,rectangle,draw] at (u2) {\qquad};     \node[outer sep=10pt,rectangle,draw] at (u3) {\qquad};     \draw[a] (u1)--(u2);     \draw[a] (u3)--(u1);     \end{tikzpicture}     \end{document}      ![arrows](http://i.stack.imgur.com/ux0fm.png)


title: Tikz, tangent between two circles

text: I am trying to create the image below ![enter image description here](http://i.stack.imgur.com/o4HPA.png) Here is my code               \documentclass[10pt,a4paper]{article}     \usepackage{tikz,tkz-euclide}          \begin{document}     \center     \begin{tikzpicture}     \tkzDefPoint(0,0){O}     \tkzDefPoint(0,1.25){A1}     \tkzDefPoint(0,3){A2}     \tkzDefPoint(3,0){A3}     \tkzDrawCircle[very thick,color=blue,fill=green!80!black,opacity=0.6](O,A2)     \tkzDrawCircle[fill=white](O,A1)     \end{tikzpicture}          \end{document}      My problem is, how Do I create the tangent line? And is there a more efficent way than mine? =)


title: How to modify the distance between branches when drawing trees using TiKZ?

text: I want to modify the distance between a parent node and a child node when drawing a tree using TiKZ package. I looked at the example at TiKZ site, and add a property called `sibling distance`. However, no matter where I added (parent and child), it points to a wrong place. ![enter image description here](http://i.stack.imgur.com/s3UeM.png) As we can see, if I add more children to node `2`, it will overlap with `5`. Adding a `sibling distance` yield even a worse result: ![enter image description here](http://i.stack.imgur.com/t7ASy.png) And I couldn't figure out what caused this issue. Any idea? Thank you. **Minimal Example**               \documentclass[a4paper,landscape]{scrartcl}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}[auto]         \node [circle,draw] (z){0}             child { [sibling distance=10mm]                 node[circle,draw] (a) {1}                 child {                      node[circle,draw] (c) {5}                  }                 child {                      node[circle,draw] (d) {5}                  }                    child {                      node[circle,draw] (e) {5}                  }                    child {                      node[circle,draw] (f) {5}                  }                }             child {                 node[circle,draw] (b) {2}             }             ;              \path (z) -- (a);         \path (z) -- (b);         \path (a) -- (c);         \end{tikzpicture}     \end{document}


title: How to export custom TexStudio shortcut and macro?

text: Since I usually re-install, either the OS or TexStudio. It's frustrated to configure everything again. I save the profile and restore but those information were not in there.


title: figure and table kept together

text: I have a table and a figure, both with captions, that I want to keep together, problem is that when               \begin{figure}[htbp]        ...figure code, graphics, plot, whatever        \caption[small caption]{figure caption}\label{fig:figlabel}     \end{figure}     \begin{table}[htbp]        \caption[small caption]{table caption}\label{tab:tablabel}        ...table code, numbers, etc.     \end{table}      is used, latex has a tendency to split them up sometimes, I really want them kept together on a dedicated page, there is plenty of room on a single page, for both. Anyone know a simple solution?


title: Hide all images, listings and equations?

text: is there any way to hide all images, equations and all listings (embedded by using lstlisting package) manually by setting a certain command in the preamble? It would just be interesting to see how many pages of real 'text' the document contains actually. Thanks! **Edit** : I tried using Stefans suggestion:               \renewenvironment{lstlisting}{\begin{comment}}{\end{comment}}     \renewenvironment{figure}{\begin{comment}}{\end{comment}}     \renewenvironment{equation}{\begin{comment}}{\end{comment}}      whereas I have the verbatim-package in the preamble. I'm getting the same error message as if when using Martins suggestion:               File ended while scanning use of \next for a command line `\include{main/02}`      When not using the commenting-stuff, there's no error while compiling the document :( **Edit2** : I found out that Martins solution works but not for equations which I insert via:               \newcommand{\beq}{\begin{equation}}     \newcommand{\eeq}{\end{equation}}      and than:               \beq     blaaa...     \eeq      Which way to take therefor?


title: Vertical space between figures

text: I really want to get rid of some of the whitespace between figures and subfigures, it is completley unecessary and sometimes causes a page of figures with a third landing on page two with text, while all could be on the same page, caption included if I could just remove some of the vertical whitespace...               \begin{figure}[H]               \centering       \caption{Tidsutvikling bakgrunnstøy}       \raisebox{-100}{\includegraphics[width=0.8\textwidth]{noise_f(t).png}}\\       \subfloat{\includegraphics[width=0.8\textwidth]{noise_F(w).png}}\\       \subfloat{\includegraphics[width=0.8\textwidth]{noise_w(t).png}}     \end{figure}      I tried raisebox with minus value, pdflatex doesn't want, I have been googling for hours with no solution. How in gods name do I do this. Edit: Answer to below question               \documentclass[norsk,a4paper,12pt]{article}     \usepackage[T1]{fontenc}     \usepackage[norsk]{babel}     \usepackage[latin1]{inputenc}     \usepackage{hyperref}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{verbatim}     \bibliographystyle{plain}     \usepackage{float}     \usepackage{subfig}     \renewcommand{\abstractname}{Abstrakt}     \renewcommand{\contentsname}{Innhold}      If I use `subfigure` the figures are so large that one of them gets cut off in the middle, if I use seperate `\begin{figure}` I will have the initial problem of too much white space. Two figures on a page then a third on page with text looks very bad.


title: Align numbers with numbers and asterisks in table by decimal point

text: I have created the following table with numbers and asterisks in it. ![table](http://i.stack.imgur.com/6MmPf.png) Now I would like to align the numbers by decimal points. I included the package _dcolumn_ and defined a new column type: `\newcolumntype{d}[1]{D{.}{.}{#1}}`. Then I replaced `{ccccc}` by `{d{2.0}d{1.2}d{2.2}d{2.3}d{1.2}}` and ended up with this code:               \documentclass{article}          %tables     \usepackage{booktabs}     \usepackage{longtable}     \usepackage{dcolumn} %align numbers by decimal point     \newcolumntype{d}[1]{D{.}{.}{#1}}          \begin{document}          \begin{longtable}[]{d{2.0}d{1.2}d{2.2}d{2.3}d{1.2}}     \caption{} \label{}\\     \toprule     \textbf{ Item } & \textbf{ \textit{b} } & \textbf{ \textit{t} } & \textbf{ \textit{F} } & \textbf{ \textit{R$^2$} }\\     \midrule     \endfirsthead     \toprule     \textbf{ Item } & \textbf{ \textit{b} } & \textbf{ \textit{t} } & \textbf{ \textit{F} } & \textbf{ \textit{R$^2$} }\\     \midrule     \endhead     \bottomrule     \endfoot     \endlastfoot     1 & -1.45$^{***}$ & -7.44$^{***}$ & 55.34 & .18  \\     11 & -.86$^{*}$ & -2.09$^{*}$ & 4.36 & .01  \\     12 & -1.79$^{***}$ & -3.80$^{***}$ & 14.47 & .05  \\     13 & -.56 & -1.34 & 1.80 & .00  \\     61 & -1.79$^{***}$ & -5.85$^{***}$ & 34.20 & .12  \\     62 & -1.00$^{**}$ & -3.17$^{**}$ & 10.05 & .04  \\     63 & -.27 & -.65 & .43 & .00  \\     64 & -.37 & -.97 & .94 & .00  \\     65 & -.34 & -.85 & .73 & .00  \\     66 & 1.05$^{**}$ & 2.70$^{**}$ & 7.30 & .02  \\     67 & -1.12$^{**}$ & -2.90$^{**}$ & 8.40 & .03  \\     72 & -.41 & -1.20 & 1.43 & .00  \\     73 & -.27 & -.82 & .67 & .00  \\     74 & 2.05$^{***}$ & 4.99$^{***}$ & 24.88 & .09  \\     75 & 1.61$^{***}$ & 4.41$^{***}$ & 19.46 & .07  \\     76 & .29 & .91 & .83 & .00  \\     \bottomrule     \end{longtable}          \end{document}      But I get the following error when I run the code:               ! Missing $ inserted.     <inserted text>                      $     l.24 1 & -1.45$^                     {***}$ & -7.44$^{***}$ & 55.34 & .18  \\      Apparently `dcolumns` doesn't like the math code for the asterisks. What am I missing? Is there a better way to add asterisks? I also tried `siunitx`, but I had even more trouble with it (e.g. it also formated the numbers .00 -> 0.00 and the column header was not centered properly). I guess this package is a little overpowered for my usecase. Thank you for your help!


`resolution` is undefined in XeTeX so the following code will produce different values when compiled with pdfTeX and XeTeX.               \documentclass{article}     \usepackage{graphicx}          \newsavebox\IBox     \savebox\IBox{\includegraphics[scale=1]{koala.jpg}}          \begin{document}     \the\wd\IBox     \end{document}      How to force pdfTeX and XeTeX to produce the same measurement for the imported image?


title: FillBetween library sometimes works and sometimes does not

text: I have the following MWE using the relatively new `FillBetween` library from pgfplots.               \documentclass{article}     \usepackage{pgfplots}     \usepgfplotslibrary{fillbetween, decorations.softclip}     \pgfplotsset{compat = newest}          \begin{document}          \begin{tikzpicture}[font=\normalsize]             \begin{axis}[                 axis lines*=left,                  xlabel={x}, ylabel = {y},                 xmin=2,                 xmax=12,                 ymin=-10000,                 ymax = 30000             ]             \addplot+[color=green, mark=none, name path=B]  table {dummy.data};             \path[name path=D] (axis cs:4,0) -- (axis cs:9,0);             \draw (axis cs:4,0) -- (axis cs:9,0);             \addplot[color=blue!10] fill between[of=D and B, soft clip={(axis cs:5,-1000) rectangle (axis cs:6,30000)}]; %, soft clip={domain=4.3:9.5}];         \end{axis}     \end{tikzpicture}     \end{document}      which yields ![enter image description here](http://i.stack.imgur.com/a6lBQ.png) Now, I want the plot to actually go from xmin = 2 to xmax=14 or 15. If I change that in the axis options, the plot magically ends up like this... changed axis code               \begin{axis}[         axis lines*=left,          xlabel={x}, ylabel = {y},         xmin=2,         xmax=12.5,         ymin=-10000,         ymax = 30000     ]      ![enter image description here](http://i.stack.imgur.com/8WA6V.png) The data can be found here: https://www.dropbox.com/s/s9tnjouc9akf2wm/dummy.data So, what's going on here? :)


title: Downsides of using \par instead of two new lines

text: Coming from an HTML background using `<p>` to mark paragraphs I consequently use `\par` to mark paragraphs instead of using two consecutive blank lines. This feels more semantic (of course I realize this argument is bogus) and after a few years of LaTeX this habit is hard to lose. It also feels handier in (for instance) enumeration environments, the line with `\item` doesn't get its own `\par` while the other paragraphs do, using whitespace between consecutive `\item`'s, but as said before, this is just a feeling. I was wondering whether there are other people doing this or if there are any reasons to _not_ do it this way? The only argument I can come up with could be readability (more whitespace is easier for the eyes) but if there are others I might have to get rid of this tic.


title: How to use comma and dot effectively in reference/bibtex style

text: I would like to use article reference style as such: Author, _Journal_ **Volume** pp.23-34 (year). Weblink For example: A. N. Ohio, B. R. Gerrad and M. Forsyth, _Nat. Mater._ **24** pp. 345-456 (2002). CrossRef Please help me to change in bibtex format style (.bst) so that I can use comma and dot effectively. * * *               FUNCTION {output.nonnull}     { 's :=       output.state mid.sentence =         { " " * write$ }         { output.state after.block =         { " " * write$           newline$           "\newblock " write$         }         { output.state before.all =             'write$             { add.period$ " " * write$ }           if$         }           if$           mid.sentence 'output.state :=         }       if$       s     }               FUNCTION {fin.entry}      { write$       newline$     }          FUNCTION {format.authors}     { author empty$         { "," }         { author format.names }         if$     }          FUNCTION {format.date}     { year empty$         'year          {" ("   year * ")." * }       if$     }          FUNCTION {format.vol.num.pages}     { volume field.or.null boldface       number empty$         'skip$         { "(" number * ")" * *           volume empty$         { "there's a number but no volume in " cite$ * warning$ }         'skip$           if$         }       if$       pages empty$         'skip$         { duplicate$ empty$         { pop$ format.pages }         { ", pp. " * pages n.dashify * }           if$         }       if$     }          FUNCTION {format.names}     { 's :=       #1 'nameptr :=       s num.names$ 'numnames :=       numnames 'namesleft :=         { namesleft #0 > }         { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=           nameptr #1 >         { namesleft #1 >             { ", " * t * }             { numnames #2 >             { "," * }             'skip$               if$               t "others" =             { " et~al." * }             { " and " * t * }               if$             }           if$         }         't           if$           nameptr #1 + 'nameptr :=           namesleft #1 - 'namesleft :=         }       while$     }          FUNCTION {article}     { output.bibitem       format.authors "author" output.check       new.block       ", " * write$        format.title "title" output.check       new.block       crossref missing$         { journal emphasize "journal" output.check           format.vol.num.pages output           format.date "year" output.check         }         { format.article.crossref output.nonnull           format.pages output         }       if$       new.block       note output       new.block       howpublished output        fin.entry     }      * * * I used acs.bst and in sections where I made changes...I copy pasted above. Changes can be crosschecked by comparing these sections with original acs.bst file. It gave me full control in comma and dot.