title: Remove page number from chapter title page

text: I am typesetting a book and each chapter has its own title page. This is the code:               \documentclass[10pt]{book}     \usepackage[spanish, es-lcroman]{babel}     \usepackage[T1]{fontenc}     \usepackage{textcomp}     \usepackage{extsizes}     \usepackage{longtable}     \usepackage{fixltx2e}     \usepackage[utf8]{inputenc}     \usepackage{siunitx}     %\usepackage{graphicx, lmodern}     \usepackage{fancyhdr}     \usepackage{wasysym}     \usepackage{translator}     \usepackage{array,booktabs,arydshln,xcolor}     \makeatletter     \def\@makechapterhead#1{%     \vspace*{250\p@}%     \noindent\hspace*{.1\linewidth}\smash{\rule[-2\textheight]{15pt}{3\textheight}}% Thick rule     \hspace{.02\linewidth}\smash{\rule[-2\textheight]{1pt}{3\textheight}}% Thin rule     \hspace{.1\linewidth}%     {\parbox[t]{\dimexpr.75\linewidth-7pt}{\raggedright     \ifnum \c@secnumdepth >\m@ne         \normalfont\bfseries\fontsize{30\p@}{36\p@}\selectfont         \@chapapp\space \scalebox{2}{\thechapter}         \par\nobreak         \vskip 30\p@     \fi     \interlinepenalty\@M     \fontsize{35\p@}{45\p@} \bfseries #1     }     }\thispagestyle{empty}\clearpage}     \def\@makeschapterhead#1{%     \vspace*{250\p@}%     \noindent\hspace*{.1\linewidth}\smash{\rule[-2\textheight]{15pt}{3\textheight}}% Thick rule     \hspace{.02\linewidth}\smash{\rule[-2\textheight]{1pt}{3\textheight}}% Thin rule     \hspace{.1\linewidth}%     {\parbox[t]{\dimexpr.75\linewidth-7pt}{\raggedright     \fontsize{35\p@}{45\p@} \bfseries #1     }     }\thispagestyle{empty}\clearpage}     \makeatother      In every chapter title page I get what I want, except for one in which the page number appears: ![enter image description here](http://i.stack.imgur.com/ZH3kM.png) I want to get rid of that page number but none of hat I have tried has worked so far.               \usepackage{titlesec}     \assignpagestyle{\chapter}{empty}          \usepackage{etoolbox}     \patchcmd{\chapter}{plain}{empty}{}{}          \makeatletter     \renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi                     \thispagestyle{empty}% original style: plain                     \global\@topnum\z@                         \@afterindentfalse                     \secdef\@chapter\@schapter}     \makeatother          \renewcommand*\chapterpagestyle{empty}


title: aligning to the left

text: The following is the script I used.               \begin{align*}     (a,b):=\{x:a\prec x\prec b\}\\     (a,b]:=\{x:a\prec x\preceq b\}\cdots\text{if $b$ is the largest element of $X$}     \end{align*}      But, I want the $(a,b):={x:a\prec x\prec b}$ to be at the left side aligning with the bottom one. How can I do that?


title: How to mark book paragraphs as note, warning, tip etc.?

text: In my text I have some paragraphs that should be denoted as "note", "caution", "tip", "story". These paragraphs should be rendered with darker background and an icon on the left side. I was not able to figure out the good keywords to google this up. Any clues?


title: Added chapter with \addcontentsline does not appear on ToC

text: I add four chapters with `\addcontentsline` after `\bibliography`, however, there are only three chapters appearing in the Table of Contents. Could you please tell me what I should do? Sorry for my unspecification. I use `\documentclass{book}`, and I typed that :               \bibliography{refs.bib}          \addcontentsline{toc}{chapter}{Bibliography}          %%%%%%%%%%%          \include{Appendix 1}          \addcontentsline{toc}{chapter}{Appendix 1}          \thispagestyle{empty}          %%%%%%%%%%%%          \include{Appendix 2}          \addcontentsline{toc}{chapter}{Appendix 2}          \thispagestyle{empty}          %%%%%%%%%%%%          \include{Appendix 3}          \addcontentsline{toc}{chapter}{Appendix 3}          \thispagestyle{empty}          %%%%%%%%%%%%          \include{Appendix 4}          \addcontentsline{toc}{chapter}{Appendix 4}          \thispagestyle{empty}      But then it appears only 3 first appendices.


title: footnote non-breakable

text: I am typesetting in a bidirectional environment, the language is right to left but the commands are left to right. Due to this i rather distinguish the commands and the actual text by typing every command in a new line. Unfortunately this caused me some trouble, please consider the following sample:               \documentclass{article}          \begin{document}          thus \footnote{this is a footnote} the main issue remains. The quick brown fox jumps over the lazy dog \footnote{Why did it jump} The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog          \end{document}      which results in the following output:   ![alt text](http://i.stack.imgur.com/g3uxN.jpg) As you can see, the output has two problems:   1. The space between the main text and number representing a footnote is wide (look at the space between "thus" and "footnote number 1".   2. The second footnote has moved to the new line. I know that they are all my fault! I must not put space between the footnote command and the text before. But I provided this example to let you know what are the problems. Now considering the case in a bidi environment where I have used many `\footnote` commands in a new line but without any space, as shown below:               this is the text     \footnote{this is a footnote}      How can I overcome this problem and remove that whitespace which tex assumes when going to new line and still maintain the readability of the text? Should I renew the footnote command and add the `\hspace` with negative value to it?


title: My longtable is not fitting in the pagewidth

text: It looks like this question has been asked many times, but I was unable to solve my problem as I am new to latex. I have the following longtable in my .tex document               \begin{longtable}{@{}lll@{}}     \toprule     \textbf{AU Number} & \textbf{FACS Name} & \textbf{Muscular Basis}\\     \midrule     0   &   face    &       \\     1   &   Inner Brow Raiser   &   frontalis (pars medialis)   \\     2   &   Outer Brow Raiser   &   frontalis (pars lateralis)  \\     4   &   Brow Lowerer    &   depressor glabellae, depressor supercilii, corrugator supercilii    \\     5   &   Upper Lid Raiser    &   levator palpebrae superioris, superior tarsal muscle    \\     6   &   Cheek Raiser    &   orbicularis oculi (pars orbitalis)  \\     7   &   Lid Tightener   &   orbicularis oculi (pars palpebralis)    \\     8   &   Lips Toward Each Other  &   orbicularis oris    \\     9   &   Nose Wrinkler   &   levator labii superioris alaeque nasi   \\     10  &   Upper Lip Raiser    &   levator labii superioris, caput infraorbitalis  \\     11  &   Nasolabial Deepener &   zygomaticus minor   \\     12  &   Lip Corner Puller   &   zygomaticus major   \\     13  &   Sharp Lip Puller    &   levator anguli oris (also known as caninus) \\     14  &   Dimpler &   buccinator  \\     15  &   Lip Corner Depressor    &   depressor anguli oris (also known as triangularis)  \\     16  &   Lower Lip Depressor &   depressor labii inferioris  \\     17  &   Chin Raiser &   mentalis    \\     18  &   Lip Pucker  &   incisivii labii superioris and incisivii labii inferioris   \\     19  &   Tongue Show &       \\     20  &   Lip Stretcher   &   risorius w/ platysma    \\     21  &   Neck Tightener  &   platysma    \\     22  &   Lip Funneler    &   orbicularis oris    \\     23  &   Lip Tightener   &   orbicularis oris    \\     24  &   Lip Pressor &   orbicularis oris    \\     25  &   Lips Part   &   depressor labii inferioris, or relaxation of mentalis or orbicularis oris   \\     26  &   Jaw Drop    &   masseter; relaxed temporalis and internal pterygoid \\     27  &   Mouth Stretch   &   pterygoids, digastric   \\     28  &   Lip Suck    &   orbicularis oris    \\     29  &   Jaw Thrust  &       \\     30  &   Jaw Sideways    &       \\     31  &   Jaw Clencher    &   masseter    \\     32  &   [Lip] Bite  &       \\     33  &   [Cheek] Blow    &       \\     34  &   [Cheek] Puff    &       \\     35  &   [Cheek] Suck    &       \\     36  &   [Tongue] Bulge  &       \\     37  &   Lip Wipe    &       \\     38  &   Nostril Dilator &   nasalis (pars alaris)   \\     39  &   Nostril Compressor  &   nasalis (pars transversa) and depressor septi nasi  \\     41  &   Glabella Lowerer    &   Separate Strand of AU 4: depressor glabellae (aka procerus) \\     42  &   Inner Eyebrow Lowerer   &   Separate Strand of AU 4: depressor supercilii   \\     43  &   Eyes Closed &   Relaxation of levator palpebrae superioris  \\     44  &   Eyebrow Gatherer    &   Separate Strand of AU 4: corrugator supercilli  \\     45  &   Blink   &   Relaxation of levator palpebrae superioris; contraction of orbicularis oculi (pars palpebralis) \\     46  &   Wink    &   orbicularis oculi   \\          \bottomrule     \end{longtable}      I just want to make sure so that the text in the column Muscular Basis, does not go outside my page margins. Each line of text under the Muscular Basis column can be in multiple lines but in the same row.


title: Some table references sometimes not working

text: I'm having a problem with `\ref` to some of my tables. I have lots of tables via several `\input{}` commands. Some files contain only one table, others multiple tables. The problem is that some of the references aren't found. The main file may find the first table but not the second etc. I have read Table reference but the `\label` is always after `\caption` in my files. Oddly, creating a new, test file and importing the tables there throws up no problems with the references, they all work. Yes, I have checked spelling. Yes, I have checked that the labels are unique, besides I'm getting ?? rather than an incorrect reference. Any ideas?


title: Multiple Reference headings

text: I am new to latex. I have all my references contains in `bibfile.bib`. However, I have formatted my document to output separate bibliographies after each section. In my main tex file I have:               \usepackage[section]{chapterbib}     \usepackage{apacite}          \include{section1}     \include{section2}     \include{section3}      In each `section#.tex` file, at the end, I have:               \bibliographystyle{apacite}     \bibliography{bibfile}      I am not using biblatex or natbib or anything else. Everything works perfectly, _except_ each reference section starts like this: ![http://f.cl.ly/items/28422m222H1m2y3Z330v/Screen%20shot%202013-01-31%20at%204.07.07%20AM.png](http://i.stack.imgur.com/Dx815.png) I would like to get rid of these headers entirely, and perhaps use a `\subsection` so that the reference section is numbered properly. Or at least, get rid of two of the three "Reference" headings... I see several similar threads, but they are using different packages and I can't seem to figure this out. I know I should be able to remap the Reference header, but I can't find a solution that works. Note: `\renewcommand{\refname}{}` doesn't work. Not only does it leave a big space in place of the reference header, it doesn't get rid of the last `*References`


title: Tikzmark and french seem to conflict

text: I just discovered `tikzmark` thanks to the blog, and it sounds really promising. I downloaded the files from CTAN and put `tikzlibrarytikzmark.code.tex` and `tikzmarklibrarylistings.code.tex` in the same folder as my main `.tex` file. I'm trying to reproduce the first example from the manual itself, _en français_.               \documentclass[french]{beamer}          \usepackage{babel}     \usepackage{tikz}     \usetikzlibrary{tikzmark}          \begin{document}          \begin{frame}{Test}             \[          \tikzmark{a} \frac{x^2}{n!}        \]            Test \tikz[remember picture,overlay,baseline=0pt] \draw[->] (0,1em) to (pic cs:a);          \end{frame}          \end{document}      I guess it has to do with the `:` colon in the `tikzmark` specific syntax, right? Any ideas on what to do? This compiles just fine if I replace `french` with `english`.


title: Professional slashbox alternative

text: Suppose I have the following table which lists conversion rules, where rows denote the input and columns denote the output type (so, for example, the conversion `int8_t -> int16_t` would use `b`, while `int16_t -> int8_t` would use `g`): ![table](http://i.stack.imgur.com/zxNiW.png) This answer lists alternatives for using a `\slashbox` (which is what I would have originally used), which seem much more professional. However, the second table in their example seems unintuitive/not clear to me, and with the thrid, the thing that bit me was that in their example, the domains of rows and columns are different and therefore it is not necessary to define whether rows map to rooms and columns to dates or vice versa. With that in mind, the best I could come up with was the above, which does not look good (and uses a vertical line which I'd like to avoid, but without it the table's meaning wouldn't be clear at all). What would be a best practice to typeset such a table? Code for the example above:               \begin{table}       \centering         \begin{tabular}{rr|rrrrrr}         \toprule               &       & \multicolumn{6}{c}{Output}                    \\         \midrule               &       & int8\_t & int16\_t & int32\_t & uint8\_t & uint16\_t & uint32\_t \\         \multirow{6}[0]{*}{\begin{sideways}Input\end{sideways}} & int8\_t & a     & b & c & d     & e & f \\          & int16\_t & g     & h & i & j     & k & l \\          & int32\_t & m     & n & o & p     & q & r \\          & uint8\_t & s     & t & u & v     & w & x \\          & uint16\_t & y     & z & a & b     & c & d \\          & uint32\_t & e     & f & g & h     & i & j \\         \bottomrule         \end{tabular}%       \label{tab:addlabel}%     \end{table}%


title: Color influences layout?

text: To verify a layout template, I use `eso-pic`. In this example, all boxes should start at 20mm from the left, but as soon as I use `\color...put \color...put` the X-coordinates of the boxes are deferred.               %\documentclass[]{letter} same     \documentclass[]{scrlttr2}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}     \usepackage{picture,eso-pic}      \setlength\fboxsep{0pt}          \AddToShipoutPicture*{ \AtPageUpperLeft{%     \multiput(20mm,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}     \put(20mm,-85mm){\colorbox{red!25}{\framebox(30mm,10mm){A}}}     \put(20mm,-100mm){\colorbox{blue!25}{\framebox(30mm,10mm){B}}}     \color{lightgray}{\put(20mm,-65mm){\colorbox{green!25}{\framebox(30mm,10mm){C}}}}     \color{red}{\put(20mm,-50mm){\colorbox{pink!25}{\framebox(30mm,10mm){D}}}} % 2 following rows with color break X coord.     \put(20mm,-35mm){\colorbox{yellow!25}{\framebox(30mm,10mm){E}}}     }}          \begin{document}      \begin{letter}{To} \opening{Hi,}      \textbf{ALL} boxes should start at 20mm from the left side \closing{bye} \end{letter}      \end{document}      How do I fix this? Removing **`\color{red}`** fixes the problem in this example. \--   _As a follow up question:_ I created my own commands to ease control over which standard should be drawn with its corresponding color. Sadly, they silently mess up layout, too. The lines work fine, but succeeding boxes are deferred. How can I fix that and still avoid redundancy and maintain abstraction?               \documentclass[]{scrlttr2}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}     \usepackage{picture,eso-pic,etoolbox}      \setlength\fboxsep{0pt}          \newtoggle{printA}     \toggletrue{printA}     \newcommand \colorA {red}     \newcommand \printA [1]{\iftoggle{printA}{{\color{\colorA}{#1}}}{}}          \AddToShipoutPicture*{ \AtPageUpperLeft{%     \put(20mm,-85mm){\colorbox{yellow!25}{\framebox(30mm,10mm){A}}}     \printA{\multiput(20mm,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}}     \printA{\multiput(25mm,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}}     \put(20mm,-100mm){\colorbox{blue!25}{\framebox(30mm,10mm){B}}}     }}          \begin{document}      \begin{letter}{To} \opening{Hi,}      \textbf{ALL} boxes should start at 20mm from the left side \closing{bye} \end{letter}      \end{document}      I really do feel lost in latex regarding determinism of my code! Is there anything I can do to ensure color doesn't has any side-effects or in other words doesn't silently messes up the layout?


title: Line numbering of listings

text: In the `listings` package, the `stepnumber` option controls the interval of line numbering, but I found there's no such option which controls the starting number. Is there a way that I could show numbers 1,11,21,... rather than 10,20,30,... ? * * * **Update** I have tried `firstnumber`, and this is not what I want. I want things like this:                  A      2 B        C        D        E        F      7 G        H        I        J        K     12 L        M        N      But with `firstnumber=2,stepnumber=5` I get this:                  A        B        C      5 D        E        F        G        H     10 I        J        K        L        M     15 N


title: Is there a good way to subdivide your tex document into subdocuments?

text: Like classes in java (if that means anything to anyone)? Can you have a document which handles all the graphing, another which handles the figures where you can call parts when you need them in your main document. The reason I ask is that one of the things that trips me up about latex is I get totally lost trying to find bits of the document. I am trying to find a way to do it. Texmaker has some ways of figuring out where you are by letting you click on a section but it has other disadvantages and I would be interested if there are more possibilities that I have not tapped into yet.


title: Formatting subsections and chapters in tufte-book

text: Sorry. I am new at this and it is my first time asking a question. I was reading this posting: how to change chapter/section style in tufte-book? How does one also get the subsections to change to the same colors as the sections as in the top image? Also, how does one make the chapter have a similar style to the section headings?


title: The complex layout of columns (for cheatsheet)

text: Objective: to A4 paper in four columns on two sides to print text. Requirements: 1) sheet is cut into the column (ie on both sides of the sheet of the border must be the same), and 2) the most difficult, the numbering of the columns after cutting must go in sequence (ie, quarters has an associated text). Illustrative example. The original list, side A: | 1 | 2 | 3 | | 4 |, side B: | 5 | 6 | 7 | | 8 |. Printed: | 1 | 3 | 5 | 7 | and | 8 | 6 | 4 | 2 |. After cutting, we have four quarters numbered columns | 1 | 2 |, | 3 | 4 | etc. Did this through pstops, but the pdf shows only three columns. ![enter image description here](http://i.stack.imgur.com/KKosw.jpg) Above is a screenshot PS_View. As a result, when converting to pdf using ps2pdf in the output file there is no lower "column", just an empty space. What should I do to all 4 "columns" (page) displayed on the output sheet? Page layout options in tex file:               \documentclass[6pt]{article}     \usepackage[paperwidth=74.25mm, paperheight=210mm, margin=1cm]{geometry}      The resulting input.ps and pdf looks as it should. Process it:               pstops -w74.25mm -h210mm -d1 8:6R(0h,0w)+4R(0h,1w)+2R(0h,2w)+0R(0h,3w),1R(0h,0w)+3R(0h,1w)+5R(0h,2w)+7R(0h,3w) input.ps maket.ps      .PS output is shown in the picture above. **Update** More low, in answers, @Tom has pushed on packet usage pdfpages. The task dares as follows. Beforehand generated pdf with the necessary page size it is processed by other tex-file:               \documentclass[a4paper,12pt,         landscape % sheet orientation         ]{article}     \usepackage[final]{pdfpages}     \begin{document}     \includepdfset{         nup=4x1 % 4 pages are allocated on one sheet as 4 columns in one row         ,frame % to frame page with the frame         }     \includepdf[pages={1,3,5,7}]{input.pdf}     \includepdf[pages={8,6,4,2}]{input.pdf}     ...     \end{document}      Numbers in a `\includepdf` specify a sequence of pages on sheet. Further in a command numbering walks with 8. Result: ![enter image description here](http://i.stack.imgur.com/RfkYE.jpg)


title: Inserting a Preface in LyX

text: I'm struggling with LyX. I'm trying to insert a Preface (before the ToC) in my thesis, but I'm not sure how to do this - the dropdown list doesn't give this as an option. Any help?


title: Suppress leading space on single instance of cite

text: How do I suppress the leading space on a citation so that I get ([1],[2]) instead of ( [1],[2]) on a single instance of cite? The only answer I've seen so far is to               \usepackage[nospace,noadjust]{cite}      but that sets the option for all citations. I tried               \cite[noadjust]{mycitationkey}      and it didn't work.


title: How do I know the direction of my TiKZ circuit element?

text: I'm trying to create my own symbols for current and voltage sources - basically I want the current source as an encircled arrow in the direction of the current, and the voltage source as a + and - inside a circle, showing the direction of the potential difference. I've gotten far enough to start to draw things on circles to create these elements, but I can't figure out how to get the orientation right - please see the following example:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{circuits.ee.IEC}          \tikzset{set current source graphic = current source IEC graphic}     \tikzset{current source IEC graphic/.style={         circuit symbol lines,         circuit symbol size = width 3 height 3,         shape = generic circle IEC,         /pgf/generic circle IEC/before background={             % What do I put here?             \draw[->,thick] (0,-.5pt) -- (0,.5pt);         }     }}          \begin{document}     \begin{tikzpicture}[circuit ee IEC,scale=5]     \draw (0,0) to[current source] (2,0)                  to[current source] (2,2)                  to[current source] (0,2)                  to[current source] (0,0);     \end{tikzpicture}     \end{document}      ![MWE output](http://i.stack.imgur.com/tiuqA.png) The arrows render OK, but they all point up, regardless of the orientation of the circuit element. I'd like the arrows to point along the direction of the element, which in this case is counter-clockwise in the circuit (i.e. the right one is correct, and the others are not). How do I accomplish that?


title: Spanish references and bibliography

text: I'm using the following commands for my bibliographical stile in TexMaker:               \usepackage{natbib}     \bibliographystyle{econometrica}     \bibliography{<referencias>}      I'd like to know How to modify LaTeX/MikteX so the references in the text and also the bibliography appear like > xxx y xxx (1990) instead of > xxx and xxx (1990)


title: annotating co-first author in bibliography

text: Using either biblatex or bibtex, is there an accepted way of including a "co- first-author" footnote or annotation (for the purposes of a CV)?


title: Vertical alignment within table with graphics

text: Perhaps I am doing it the wrong way, but I have a `table` with 3 `tabulars` arranged within `minipage` each, such that I end up with 3 tables side by side. Each table only has 2 columns: 1 for text and one has `includegraphics`. I am trying to vertically align text in the first column to be in the middle of the cell.               \documentclass{article}     \usepackage[demo]{graphicx}     \usepackage{tabu, lscape}     \begin{document}     \begin{landscape}     \begin{table}[!t]     \centering     \begin{minipage}[t]{0.25\linewidth}         \vspace{0pt}     \begin{tabular}{cc}         Col1 & Col2 \\         Text & \includegraphics{<path>} \\      \end{tabular}     \end{minipage}     \begin{minipage}[t]{0.25\linewidth}         \vspace{0pt}     \begin{tabular}{cc}         Col1 & Col2 \\         Text & \includegraphics{<path>} \\     \end{tabular}     \end{minipage}     \hspace{1.5cm}     \begin{minipage}[t]{0.25\linewidth}         \vspace{0pt}     \begin{tabular}{cc}         Col1 & Col2 \\         Text & \includegraphics{<path>} \\     \end{tabular}     \end{minipage}     \end{table}     \end{landscape}     \end{document}      ![enter image description here](http://i.stack.imgur.com/E4U0A.png) I tried using `m{'width'}` from the `array` package but no luck. I was wondering if anyone had a suggestion how to achieve this?


title: Restructure classic thesis project with subfolders using Kile

text: I would like to change the folder structure of the ClassicThesis project. My current folder setup looks like this.               |-- bib // Some *.bib files.     |-- bst // Some *.bst files.     |-- cfg // Configuration tex file and sty file.     |-- fbm // Front back matter.     |-- img // Images     |-- prj // The main tex file.     |-- src // All tex files that contain content.     |-- CHANGES     |-- COPYING     |-- README      I changed all the paths to match the new directory structure. Thus Kile complains about accessing the various files.               /usr/local/bin/pdflatex: Not writing to ../fbm/Titlepage.aux (openout_any = p).          ! I can't write on file `../fbm/Titlepage.aux'.     \@include ...\immediate \openout \@partaux #1.aux                                                        \immediate \write \@partau...     l.87 \include{../fbm/Titlepage}          (Press Enter to retry, or Control-D to exit; default file extension is `.tex')     Please type another output file name     ! Emergency stop.     \@include ...\immediate \openout \@partaux #1.aux                                                        \immediate \write \@partau...     l.87 \include{../fbm/Titlepage}          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on ClassicThesis.log.      When I remove the subdirectory path _Kile_ produces a PDF with zero bytes. **Optional:** If possible, I would also like to have separate folder for the binary and temporary files. Saying, the PDF would go into `bin/` and the *.aux files would go into `tmp/`.


title: Biblatex & Biber still dysfunctional - need some help (is there something wrong in code)?

text: I still have issues with biblatex and biber, citations are not produced properly, a reference list is not set up. I also run pdflatex, biber, pdflatex (F6-F11-F6) in TeXStudios. I implemented the code suggested here Citation and reference list isn't working, but it's still not working. Could you have a look on my code, maybe you find the problem?                   \documentclass[12pt,ngerman]{article}         \usepackage[ngerman]{babel}%added         \usepackage[backend=biber,style=apa]{biblatex}%mod.         \usepackage[german=quotes]{csquotes}%mod.         \usepackage[locale=US]{siunitx}         \DeclareLanguageMapping{ngerman}{ngerman-apa}         \addbibresource{Literatur.bib}              \begin{document}              \section{Test}         This is a test \cite{Test2000}.          \printbibliography          \end{document}      In Literatur.bib, I have properly implemented the Test2000 cite:                   @Article{Test2000,           Title                    = {This is a testing title},           Author                   = {Test, V.},           Journal                  = {Example magazine},           Year                     = {2000},           Pages                    = {33-37},           Volume                   = {8}         }      Errors: Zeile 147: Citation 'Test2000' on page 6 undefined Zeile 182: Empty bibliography: There were undefined references. Please (re)run Biber on the file:(biblatex) AbschlussberichtX(biblatex) and rerun LaTeX afterwards


title: How to import ASCII coordinates to TikZ

text: I have a long file of Brazil coordinates like:               (-3.43,-0.56) -- (-3.44,-0.56) -- (-3.44,-0.55) -- (-3.50,-0.55) -- (-3.52,-0.55) ...      and I want to import then into a `tikzpicture` environment to use with the `\draw` command. Some thing like this:               \documentclass{minimal}     \usepackage{tikz}     \begin{document}     \pagestyle{empty}          \begin{tikzpicture}     \draw 'myfile'     \end{tikzpicture}          \end{document}


title: Two-column Bibliography with bibitem in the first column

text: I am trying to make my bibliography have two columns with each \bibitem appearing in the first one (a regular two-column table). This is an example of what the desired output looks like: ![enter image description here](http://i.stack.imgur.com/4hrf4.png) For a reason, I am using `thebibliography` to generate biblio manually. My code looks e.g. like this:               \begin{thebibliography}{13}     \footnotesize     ...     \bibitem[Blog]{bib.blog} \emph{CloverETL's Blog on Data Integration:     CloverETL tips and advice from data integration experts} [online]. 2012 [quoted 2012-03-14]. Available  at: \url{http://blog.cloveretl.com/}     ...     \end{thebibliography}       I have been experimenting with `minipage`, `multicols(*)`, tables (TeX will not let me separate `\bibitem` from the rest of the entries by `&`) with no success.


title: How not to load a file repeatedly?

text: I created a file `version.tex` with a `git log` message. This `.tex`-file is then included in my `main.tex` file like this:               \renewcommand{\footsnippy}{%       Author Name,       Title of my Book,  %       \input{version}     }      because `footsnippy` is used by the document class to print the current date, author, title -- and now the git log -- onto each page. But: LaTeX now is slowed down quite a bit, because it seems that the `\input` is now executed on _every page_. Hrm... Look:               ...     ) [11] (./version.tex) [12] (./version.tex) [13] (./version.tex) [14]     (./version.tex) [15] (./version.tex) [16] (./version.tex) [17] (./version.tex)     [18] (./version.tex) [19] (./version.tex) [20] (./version.tex) [21]     (./version.tex) [22]) (./wikitex/00Vorwort.tex (./version.tex) [23]     (./version.tex) [24]) (./version.tex) [25] (./wikitex/teil01beginn.tex     (./version.tex) [26]     ...      Is there any way I can circumvent that the file is read again and again?


title: Greek characters instead of "et al."

text: Problem: In the final pdf document I get greek letters "k. sun." instead of "et al." when citing articles, for instance "Garris k. sun". instead of "Garris et al". This refers to the text corpus, not the bibliography. The bibliography at the end of the document is fine.   I am using an identical preamble to a colleague of mine with the difference that I use `\usepackage[english,greek]{babel}` because I need greek letters in my document. But I don't know what it has to do with the bibliography. I need to cite in APA style. For citing I use the `\citep` command. Preamble:               \documentclass[10pt,twocolumn]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{geometry}     \usepackage[hidelinks]{hyperref}     \usepackage{apacite}     \usepackage{natbib}     \usepackage{graphicx}     \usepackage[english,greek]{babel}     \usepackage{amsmath}     \usepackage[compact]{titlesec}     \usepackage{appendix}     \geometry{a4paper, margin=1.6in}      ...               \bibliography{prova}{}     \bibliographystyle{apacite}      ... Here an example from the bibliography:               @article{garris2002games,       title={Games, motivation, and learning: A research and practice model},       author={Garris, R. and Ahlers, R. and Driskell, J.E.},       journal={Simulation \& gaming},       volume={33},       number={4},       pages={441--467},       year={2002},       publisher={Sage Publications}     }      Here the result: ![enter image description here](http://i.stack.imgur.com/xdDoI.png)


title: How can I number theorems by section in LyX?

text: The theorem count doesn't update when I move to another section. I.e. I'm currently in section 6, and LyX has already in theorem 30, when theorem 1 is in section 1. How can I make LyX start counting the theorems and lemmas from "1" in each new section?


title: Change chapter number font only

text: I would like to redefine the `\thechapter` command in the aim to use the `eurb10` font only for the chapter number. I try something like :               \newfont{\ChapNumbFont}{eurb10}     \renewcommand \thechapter {\ChapNumbFont{\@arabic\c@chapter}\normalfont}      But the chapter number font size is not correctly scaled in section, subsection... It seems to use only the "normal" size and cannot "scaled" it. What I'm doing wrong ? PS : I'm using a book class strongly customized. * * * **Answer** Thanks to Ulrike Fischer comment, I use this trick:               \renewcommand \thechapter {{\fontencoding{U}\fontfamily{eur}\fontseries{b}\selectfont\@arabic\c@chapter}}      There is a still a little font size difference.


title: Watermark on pictures only

text: I know how to use a watermark on a full page in LaTeX reports, using for instance this code:               \usepackage{draftwatermark}     \SetWatermarkText{Confidential}     \SetWatermarkScale{5}      However, on my report, I would like to use watermark **only** on the pictures/graphics I included, so that the text is not hidden by anything. Only the pictures shall be marked with e.g. "Confidential".


title: Create Yes/No bar charts

text: I am collating data from a survey and I want to create a bar graph like the one below: ![A yes/No bar chart](http://i.stack.imgur.com/xUZV5.jpg) Can anyone provide me with a template of that chart? I tried to inflect bar chart and stick the two together but it does not work very well. Thanks!


title: While using Literature references in LyX provided by BibDesk on Mac OS 10.8 capital letters are getting confused

text: On my Mac I am working with BibDesk to manage my literature references in LyX. Everything works just fine. Except for the following. In BibDesk I added a certain book with a german title in which capital letters appear and it looks this way. ![BibDesk Screenshot](http://i.stack.imgur.com/eulgX.png) After setting up lyx the citation in the bibliography section of my document appears this way. ![LyX Screenshot](http://i.stack.imgur.com/NK9I2.png) Somehow the letters _f_ in the word _Funktionen_ and the _M_ in the word _Modulformen_ were transformed to lower case, which is wrong and clearly not the same as I entered them in BibDesk. Any idea where this comes from?


title: The \not rendering and the line over sigma symbol

text: I am writing a paper and I need to use the `\not` command on `\sigma` which stands for a order relation on a set. The issue is that the line over the sigma symbol is rendered poorly, is there any way I am not aware of so that the exact symbol I need is displayed correctly?


title: Garamond Premier Pro, optical sizes, XeLaTeX v. LuaLaTeX

text: Update: I upgraded to TeX Live 2013 and things have gotten slightly worse, see end of post for details. I have Garamond Premier Pro and I'm trying to make sure my documents use all the appropriate optical sizes. They work fully when using XeLaTeX but the display font is not being used in LuaLaTeX but for various reasons I have to use LuaLaTeX in all my projects. Here's the MWE:               \documentclass{memoir}     \usepackage{fontspec}     \setmainfont{Garamond Premier Pro}     \begin{document}     {\tiny tiny}\\     {\normalsize normal}\\     {\Huge Huge}\\     {\HUGE HUGE}\\     \end{document}      When I run it with XeLaTeX and look at the embedded fonts I get:               GaramondPremrPro-Identity-H     GaramondPremrPro-Capt-Identity-H     GaramondPremrPro-Subh-Identity-H     GaramondPremrPro-Disp-Identity-H      When I run it with LuaLaTeX:               GaramondPremrPro-Med     GaramondPremrPro-Capt     GaramondPremrPro-MedSubh      Notice the display font is not listed and is not being used (though the text displays at the correct size, just not using the Garamond display font). I thought I would try to force the issue with this               \documentclass{memoir}     \usepackage{fontspec}     \setmainfont[SizeFeatures=     {Size=-8,Font=GaramondPremrPro-Capt.otf}     {Size=8-14,Font=GaramondPremrPro.otf}     {Size=14-21,Font=GaramondPremrPro-Subh.otf}     {Size=21-,Font=GaramondPremrPro-Disp.otf}}     ]{Garamond Premier Pro}     \begin{document}     {\tiny tiny}\\     {\normalsize normal}\\     {\Huge Huge}\\     {\HUGE HUGE}\\     \end{document}      But when I run this in either LuaLaTeX or XeLaTeX I get the following error:               ! LaTeX Error: Font EU2/GaramondPremierPro(0)/m/n/10 not found.      I have no idea what that means or if I've even gotten the syntax correct for specifying sizes like that. So in the end I seem unable to get the display size in Garamond with LuaLaTeX. As a side note, if instead of `{Garamond Premier Pro}` I use `{GaramondPremrPro.otf}` then none of the other optical sizes are loaded with either XeLaTeX or LuaLaTeX. I'm using TeX Live 2012 and whatever versions of LuaTeX and XeTeX come with that. **Update** I managed to upgrade to the vanilla TeX Live 2013 installation (just barely) and the problem has gotten slightly worse. XeLaTeX still uses all the appropriate sizes but now LuaLaTeX doesn't use any of them. It only uses the main size font and ignores the rest.


title: How to improve the spacing of branches in a tree?

text: I am trying to build a tree but the length of branches is of uneven size. Moreover, I might need to change the labels to strings of shorter/larger length. Do you have some suggestions to improve this tree?               \documentclass[tikz]{standalone}     \usepackage{tikz-qtree}     \begin{document}     \begin{tikzpicture}[level distance=50pt]     \Tree [ \edge node[auto=right]{abcdef};      [.$C$ ] \edge node[auto=left]{$\neg$abcdef};      [ \edge node[auto=right]{abcdef};      [.$C$ ] \edge node[auto=left]{$\neg$abcdef};      [\edge node[auto=right]{abcde};      [\edge node[auto=right]{abcdef};      [\edge node[auto=right]{abcdef};      [\edge node[auto=right]{abcdef};     [.$C$ ]\edge node[auto=left]{$\neg$abcdef};      [.$C$ ] ]\edge node[auto=left]{$\neg$abcdef};      [.$C$ ] ]\edge node[auto=left]{$\neg$abcdef};      [.$C$ ] ]\edge node[auto=left]{$\neg $abcde};      [.$C$ ] ] ] ]     \end{tikzpicture}     \end{document}


title: \underbrace and notes in the center enviroment

text: Here is a little snippet of my code:               \begin{center}     $\small \displaystyle \underbrace{(- \frac{1}{2})^0}_{\text{1st term, j = 0}} +     \underbrace{(- \frac{1}{2})^1}_{\text{2nd term, j = 1}} + \underbrace{(- \frac{1}{2})^2}_     {\text{3rd term, j = 2}} + ~...+ \underbrace{(- \frac{1}{2})^k}_{\text{kth term, 2nd to \linebreak last term, j = k}} + \underbrace{(- \frac{1}{2})^{k+1}}_{\text{(k+1)th term,      last in the sum}}$       \end{center}      and this is the output ![enter image description here](http://i.stack.imgur.com/HbpUs.png) I would like this to be on one line, but have the notes underneath the last two terms split into two. How might I do this?


title: Rotating a custom shape independently of the text

text: I have constructed a custom shape using `pdfdeclareshape`, and am using it in the following diagram ![screenshot](http://i.stack.imgur.com/XfOpf.png) I would like to rotate the border independently from the text so that ideally it will eventually look something like the image in this question. Having studied the `pgf` manual and How to rotate a node and text independently in Tikz (for example), I think that I should be aiming to use `shape border rotate`, but not all shapes support it by default. Can the border of my custom shape be rotated independently from its text? (If my custom shape can be improved upon, please feel free to let critique it.)               % arara: pdflatex     \documentclass[tikz]{standalone}          \makeatletter     \pgfdeclareshape{petal}     {         \inheritsavedanchors[from=circle] % this is nearly a circle         \inheritanchorborder[from=circle]         \inheritanchor[from=circle]{center}         \inheritanchor[from=circle]{base}         \backgroundpath{             % origin             \centerpoint%             \pgf@xc=\pgf@x%             \pgf@yc=\pgf@y%             \pgfutil@tempdima=\radius%             \pgfpathmoveto{\pgfpointadd%                 {\pgfqpoint{\pgf@xc}{\pgf@yc}}                 {\pgfqpoint{-\pgfutil@tempdima}{0\pgfutil@tempdima}}}             \pgfpatharc{180}{0}{\pgfutil@tempdima}             \pgfpathcurveto{%                 \pgfpointadd{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{0.9\pgfutil@tempdima}{-.9\pgfutil@tempdima}}}                 {\pgfpointadd{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{0.5\pgfutil@tempdima}{-.5\pgfutil@tempdima}}}                 {\pgfpointadd{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{0\pgfutil@tempdima}{-1.5\pgfutil@tempdima}}}             \pgfpathcurveto{%                 \pgfpointadd{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{0\pgfutil@tempdima}{-1.5\pgfutil@tempdima}}}                 {\pgfpointadd{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{-0.8\pgfutil@tempdima}{-.8\pgfutil@tempdima}}}                 {\pgfpointadd{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{-\pgfutil@tempdima}{0\pgfutil@tempdima}}}         }     }     \makeatother          \begin{document}     \begin{tikzpicture}         \foreach \i in {1,2,...,5}         {             \pgfmathparse{90-(\i-1)*360/5}             \node[draw=black,anchor=base,rotate=-(\i-1)*360/5,petal,minimum width=1.5cm] at (\pgfmathresult:1.2cm)  {\i};         }     \end{tikzpicture}          \end{document}


title: Chapter and pages of a bibliography item are not displayed

text: I have a problem with correct bibliography display. I created a simple bibliography which looks like               @BOOK     {         CONTENTBASEDIMAGERETRIEVAL,         AUTHOR = { J.Eakins and M.Graham},         TITLE = {Content-based Image Retrieval},        PUBLISHER = {University of Northumbia at Newcastle},        CHAPTER = {What is CBIR ?},         PAGES = {9--10 },         YEAR  = {1999}     }      I refer to this book in text by using `\cite{CONTENTBASEDIMAGERETRIEVAL}`. However in the last page of document I can see only basic information about the book, but I can't see chapter and pages. What do I do wrong? Of course I compiled bibliography as well as my document.


title: Output pdf file shows empty references after inserting BibTeX in Lyx 2.0.5

text: My output pdf file shows empty references after inserting BibTeX in Lyx 2.0.5. The BibTeX file is created by JabRef 2.9.2 and I am using Windows 7.


title: xlog scale with pgfplots for random x-values

text: in the code below, two things should be modified:   1. xlabels and xgrid should appear for x=10^-0.1, x=10^0 and x=10^0.1 only   2. the grid along the x-axis should reflect the logarithmic scale (ie, not constant) with the major grid for the values listed above only MWE:               \documentclass[12pt]{book}     \usepackage{tikz,pgfplots}     \pgfplotsset{compat=1.3,width=10cm}     \pgfkeys{/pgf/number format/.cd,set decimal separator={,}}     \begin{document}     \begin{tikzpicture}     \begin{semilogxaxis}[grid=both,enlarge x limits=false,scale only axis,width=8.5cm,height=6cm,ymin=1,ymax=1.5,tick style={draw=none}]     \addplot[color=black,mark=*,mark size=1pt]     coordinates{(0.666667,1.21982)(1.49206,1.19949)};     \end{semilogxaxis}     \end{tikzpicture}     \end{document}


title: Easy way to type more kinds of arrows?

text: There is `\rightrightarrows` to produce two parallel arrows, `\longrightarrow` to produce a longer arrow and `\xrightarrow` to produce an extendable arrow. But is there an easy way to produce two long parallel arrows (say `\longrightrightarrows`) and two extendable parallel arrows (say `\xrightrightarrows`)? I have tried to use `\atop`, `\overset`, `\underset`, but it's always imperfect. Using `\atop`, the distance between the two parallel arrows are too large. Using `\overset`, the length of the two parallel arrows are different. More generally, what I need are: one can change the length of arrows, the distance betweens the arrows and it should be symmetrical with respect to default vertical position. Also, it should can be typed in both inline math mode and display math mode. And if it can be typed in mathoverflow, it would be great. (In the site mathoverflow, one can't not use `\xymatrix`....) The examples looks like: ![](http://i.imgur.com/yHD15.png) ![](http://i.imgur.com/rCRzO.png) ![](http://i.imgur.com/t7lC2.png) ![](http://i.imgur.com/KOarj.png)


title: Short links in BibTeX

text: Most of my citations have are websites, so I have filled the `url` field in BibTeX. However, with `apalike2`, it does not show them, so I put an `\url{…}` into there as well, copying the URL. For electronic documents, that is nice to click on, but I assume that somebody will print them and need to type everthing. Is there a good way to make short links (with a link shortener like bit.ly) for those entries automatically? If not, I'd program some Python script to do that. Or is that not considered handy in the first place?


title: Where should I put the bib-file to use it directly in \bibliography{bibfile}?

text: I've usually referred as `\bibliography{path_to_bib_file/bibfile}` to find the bib-file of my Bibliography. Where should I put my bib-file in order to simply use the command `\bibliography{bibfile}` ? Thank you in advanced for your replies!


title: tex4ht removes spaces in array column when including a package even if the package is not used

text: In the following cases, `Tex4ht` generates an HTML file with no spaces between the columns of the matrix if some package is included, even if the package is not used. Removing the package, the space between the columns shows up again. This only affects tex4ht and not pdflatex. ## tabularx               \documentclass[12pt,notitlepage]{article}%     \usepackage{tabularx} %commenting this off restores the spaces     \begin{document}          \begin{tabular}{p{6in}}     \[     \left[ \begin {array}{cc}                                  0      &     1  \\                               -25     &     -4            \end {array}      \right]      \]     \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/aJLVC.png) ## array package ![enter image description here](http://i.stack.imgur.com/RyQta.png)               \documentclass[12pt,notitlepage]{article}%         \usepackage{array}% http://ctan.org/pkg/array               \begin{document}     \begin{tabular}{p{6in}}     \[     \left[ \begin {array}{cc}                                  0      &     1  \\                               -25     &     -4            \end {array}      \right]      \]     \end{tabular}     \end{document}      The following packages also cause the same problem, but this is due to them loading the `array` package internally: `siunitx`, `ltxtable` and any other package that loads the `array` package will show the above problem. These problems do not show up with the Latex code is outside the `tabular` environment. As I said in the comment below, this is a small example from large document. I use `tabular` with 2 columns to help me array the layout of the document. Left side is the command and the right side is the output. Both can be latex code as shown above.


title: Figure inside of starred Chapter with alphabetic numbering

text: I'm writing a book using LaTeX, and I have five main chapters. What I need is to add additional starred chapters with alphabetical enumeration, like (Annexe A, Annexe B...), so I can add figures to these chapters with the following caption: > Figure A-1 : this is a caption But when I add a figure after the starred chapter it always take the fifth chapter number which is five. How can I solve this? EDIT : this is the sample code:                   \documentclass[parskip=full,12pt,a4paper,twoside,frenchb,openany,fleqn]{book}     \usepackage{graphicx}     \begin{document}     \listoffigures     \chapter{chapter 1}     \begin{figure}       \centering       \includegraphics[width=1\textwidth]{images/figure5-20.jpg}       \caption{caption 1 }     \end{figure}     \chapter*{annexe A}     \begin{figure}       \centering       \includegraphics{images/figure5-20.jpg}       \caption{caption 2}     \end{figure}          \end{document}      I want to get Figure 1-1 : Caption 1 And Figure A-1 : Caption 2.


title: When substack and array doesn't work

text: I am trying to write a formula. But both substack and array cannot fulfil my needs (as far as I know how to use them). ![formulae](http://i.stack.imgur.com/X30zE.jpg) The first is how I want it to look like. But I need an `i'\neq i` below the summation part. The second is tried with `\substack` and the third is tried with `array` and both are unsatisfactory to me. Firstly, the `i'\neq i` is too big. Secondly, the `a_{ii'}` is misaligned. Most preferable would be to maintain the size of the `\sum`. But if that is not possible, any compromise is okay.               \documentclass{article}     \usepackage{amsmath}     \begin{document}          \begin{equation}     \sum\limits_{i=1}^{I}\sum\limits_{i'=1}^{I}a_{ii'} + \sum\limits_{i=1}^{I}b_{i}     \end{equation}     \begin{equation}     \substack{\sum\limits_{i=1}^{I}\sum\limits_{i'=1}^{I}\\i'\neq i}a_{ii'} + \sum\limits_{i=1}^{I}b_{i}     \end{equation}     \begin{equation}     \begin{array}{@{}c@{}}\sum\limits_{i=1}^{I}\sum\limits_{i'=1}^{I}\\i'\neq i \end{array}a_{ii'}+ \sum\limits_{i=1}^{I}b_{i}     \end{equation}          \end{document}


title: pattern in pgfgantt's ganttbars?

text: Is it possible to specify `pattern` in a `ganttbar` in any way? The following               \begin{ganttchart}{1}{2}             \ganttbar[pattern=north west lines]{Some bar}{1}{2} \\     \end{ganttchart}      gives               ! Package pgfkeys Error: I do not know the key '/pgfgantt/pattern' and I am goi     ng to ignore it. Perhaps you misspelled it.      Apparently it's not implemented. Is it possible in any other way?


title: Complicated Tikz logic drawing

text: This is a follow-up to this question Complicated logic circuit drawing with Tikz - two input buffer gate? Any ideas how can I draw this next element **IODELAY2** , should I use Resistance symbol? For me syntax for connecting different symbols is really hard to understand, connecting logical and electrical elements seems impossible ...


title: How to raise a LaTeX warning from within Lua code?

text: I want to raise a warning from within Lua code. With advice from the LuaTeX wiki and LaTeX 2 for class and package writers, I arrived at the following (working) solution:               \documentclass{article}     \begin{document}     Foo     \directlua{     myvar = "\noexpand\\PackageWarning{mypackage}{Hello, I am a warning.}"     tex.print(myvar)     }     \end{document}      This seems unnecessarily complex, considering that raising an error is as easy as:               \directlua{     tex.error("Hi, I'm an error!")     }      While I'm aware that `tex.error` is a generic TeX error and the warning I'm producing is a package-specific warning, I still think for both generic LaTeX warnings (if that exists?) and package-specific warnings (as well as package- specific errors, probably), there should be an easier way. Is there one?


title: Hatch Rectangle or Area in TikZ/pgf 3.0

text: I just switched to TikZ 3.0 and was used to hatch rectangles similar to this thread Hatch a rectangle in TikZ actually the example given in the accepted answer http://tex.stackexchange.com/a/54465/8042 was my favourite way. Nevertheless, since TikZ/pgf 3.0.0 the hatches look quite strange, cf. Chapter 60 (p. 674) in the most recent manual. Does anybody know how to get the old `north west lines` back?


title: circuitikz label placement seems inconsistent - how to fix it?

text: I'm new to `circuitikz` and fairly new to TikZ, and have a seemingly simple problem. The labels on my resistors are on opposite sides, for no reason that I can find. ![output](http://i.stack.imgur.com/o2csY.png)               \documentclass{standalone}     \usepackage{circuitikz}     \begin{document}     \begin{tikzpicture}[node distance = 0.5cm, auto, font=\tiny, inner sep =0.8mm,american voltages]         \ctikzset {label/align = straight }         %PSU         \draw[dashed](0.5,-3.5)rectangle(3.5,2.5);           \node at (2,2.7) (PSU_l){PSU};         \draw (2,0) to[V=$V_{\mathrm{DS}}$,*-*] (2,2);         \draw (2,-3) to[V=$V_{\mathrm{GS}}$,*-*] (2,-1);         \draw (2,-1) to (4,-1) to (4,0) to (2,0);              %Load resistors          \draw (2,2) to (4,2);         \draw (4,2)to[R=$R_{\mathrm{L1}}$,*-*] (4,0);          \draw (2,-3) to (4,-3);         \draw(4,-3)to[R=$R_{\mathrm{L2}}$,*-*] (4,-1);      \end{tikzpicture}     \end{document}      I could presumably place the labels (semi-)manually (as I don't know how to place a node relative to a path I'd have to place them fully manually for now) but I feel sure there should be a way to say which side of the resistor (or other line) to put the label.


title: Adding text to the section numbering

text: I wish to add some text prior to the number given to a subsection, e.g.:               Task 1.1  Blablabla     ...     Task 1.2  Blablabla      How?


title: Pass conditional options to documentclass

text: I'd like to pass options to `\documentclass` basing on the compiler it runs, something in the lines `\documentclass[if latex then use dvipdfm else nothing]{beamer}` My motivation is that there're several people who can compile a certain project with their own preferences for workflow. If we use `pdflatex`, then we don't need any options for beamer, but if we want to use `latex+dvipdfm`, then we need to pass `dvipdfm` option to beamer to show everything correctly. Is there a way to implement this? Any ideas will be welcome.


title: Installing fonts for yhmath on MiKTeX 2.9

text: I'd like to use the yhmath package (pdf documentation), but it requires the installation of new fonts. This is beyond my knowledge level, and I'd really appreciate some help. I downloaded the CTAN files as zip, and also installed the package through the package manager on MiKTeX, but I don't know how to proceed to install the fonts required for the package. _MiKTeX 2.9 with pdflatex on Windows 7 64-bit_ **EDIT:** Following Harish Kumar's link, and Speravir's advise; I created a new directory localtexmf and copied the .vf file to the folder suggested by Speravir. I did the same for the .pfa file. Then I added localtexmf to the Roots in the MiKTeX options, and refreshed the FNDB (as well as updated formats). However, when I run my code I still get the warning "Font shape 'OMX/yhex/m/n' undefined." Speravir suggested that it's a bug with MiKTeX, but is there a way to get around that in the meantime?


title: Letterhead : How to Position Images in Top Left Corner (Revisit)

text: I'm trying to use this exact template, but I'd like a to put a rectangular image in the top left corner ( I can give you the dimension of said rectangle if you need them). I don't know that the graphics package alone will help. Relevant Information: *The letter will not be greater than one page. *The base of the inserted image must have a length as long as the black line in the document. *The top of this image must be flush with the top of the "John Smith" in the top-right corner. * * * EDIT(1): Actually, never mind the black-line criterion because the addresses will be changing, which means the black-line length will be changing too. * * * EDIT(2): Here is how to insert the signature > \closing{Sincerely, \\\ $\hspace{7cm}$\includegraphics{signature.png}} * * * EDIT(3): I have one last question: How can I get rid of the this address with the black line under it? It looks redundant.


title: listings: Copy to clipboard feature?

text: I was just wonder if it would be possible to have a "Copy to Clipboard Button" next to each listing which would just copy the verbatim content of the lstlistings environment to the clipboard. An acroread-only solution would suffice for my purposes.


title: Figure to overlap text in beamer

text: I am making a `beamer` presentation. How can I force LaTeX to overlap text with a figure. I mean text is below the figure. Is it possible to try something like that with `beamer`?


title: Continuing Page Numbering (Roman to Arabic)

text: I'm here with weird stuff again. **How can i continue numbering while changing numbering style to Arabic from Roman?** For example let's assume I have total of 7 pages and I want to number the first 3 of them as : i,ii,iii; then I change back to Arabic again and continue counting as 4,5,6,7.


title: Image caption and cross referenceing in Beamer poster

text: In my beamer poster, I like to give caption for images and cross reference that in writing like my thesis ("Figure 2.1: Text" like this) ![enter image description here](http://i.stack.imgur.com/53iyR.png). But when I use the following code, I found ("Figure: Text" Like this) ![enter image description here](http://i.stack.imgur.com/qMdlr.jpg) and in the cross reference position shows "Fig.1". -I like to write the caption like "Figure A: Text" and in writing cross reference it like "(Fig. A)". Is it possible to do?               \documentclass[final, 12pt]{beamer}     \usepackage[size=custom,width=120,height=120,scale=1.7,orientation=portrait]{beamerposter}      \usepackage[english]{babel}     \usepackage{graphicx}     \usepackage{wrapfig,color,pgf}     \usepackage{array,booktabs,tabularx,amsthm,multirow,amsmath}     \usepackage[absolute,overlay]{textpos}     \usepackage{fancybox}     \usepackage{mdframed}     \usepackage{tikz}     \usepackage{pifont}     \usepackage{multicol}     \usepackage{listings}               \newenvironment<>{varblock}[2][\textwidth]{%       \setlength{\textwidth}{#1}       \begin{actionenv}#3%         \def\insertblocktitle{ \centering#2\par}%         \par%         \usebeamertemplate{block begin}}       {\par%         \usebeamertemplate{block end}%       \end{actionenv}}          \begin{document}     \begin{frame}          \begin{textblock}{}(0.2,6.2)%     \begin{varblock}[57cm]{}     \begin{figure}     \includegraphics{Figure/LB.jpg}     \caption{TExt}     \label{LB}     \end{figure}     \end{varblock}     \end{textblock}          \begin{textblock}{}(4.15,8.7)%     \begin{varblock}[28cm]{\textbf{Location B}}     \ref{LB} shows...     \end{varblock}     \end{textblock}          \end{frame}     \end{document}


title: Combining PDF's and their TOC

text: I have three .tex files that get compiled fine using polyglassia & xelatex packages. When I combine these three tex files in one tex file, it exceeds the memory due to a lot of special fonts used in them. So I ended up compiling them separately. As a result, I have three PDF outputs that contain hyperlinked pages to their TOC, and hyperlinked sections in TOC. So, there are three PDF's, thus three Table of Contents for each PDF. How do I combine these PDF's preserving hyperlinks as well as having one TOC file [preferably in a single multi-column page]?


title: tikz diagram showing range, domain, and co-domain of a function

text: While I am gradually becoming more proficient at TeX, I am still very new to TikZ. I am typesetting some notes for Analysis, and would like to be able to produce a map which shows 2 sets (X and Y) and a function (`f: X \to Y`) which also indicates a few points in the domain and shows where they land; in the codomain and also diagrams the range of the function `f`. I am not quite sure even how to start. Any help will be appreciated.


title: Managing different page styles' name and definition

text: I have two main questions:   1. How to copy a page style under a different name?   2. How to create a new page style based on an existing page style?   For example, to add a footer to an existing page style.


title: Why is tabu package reading what is inside \begin{htmlonly} tags?

text: I think there is a bug here. ## Introduction I use `latex2html` (L2H) to build some HTML Pages from LaTeX. The standard method to add L2H specific latex command is like this               \begin{htmlonly}        % for L2H eyes only     \end{htmlonly}      This has been working fine for years. Hence the method to build the same LaTeX document with L2H and with pdfLaTeX is to do this               \documentclass{article}%     \usepackage{html}     \usepackage{ifpdf}     \begin{document}          \begin{htmlonly}       %l2h only     \end{htmlonly}          %\begin{latexonly}    % WARNING, SPECIAL COMMENT DO NOT REMOVE      \ifpdf          %for pdflatex only       \fi     %\end{latexonly}      % WARNING, SPECIAL COMMENT DO NOT REMOVE          \end{document}      and now I can do `pdflatex foo.tex` and do `latex2html foo.tex` and both are happy. ## Problem when using tabu package Now I wanted to use `tabu` package in pdfLaTeX only. So I used the above set up and wrote               \documentclass{article}%     \usepackage{html}     \usepackage{ifpdf}     \usepackage{longtable}     \usepackage{tabu}     \begin{document}          \begin{htmlonly}      \begin{tabular}{|l|l|}     \end{htmlonly}          %\begin{latexonly}       % WARNING, SPECIAL COMMENT DO NOT REMOVE      \ifpdf        \begin{longtabu}{|l|l|}       \fi     %\end{latexonly}          a&b\\     c&d\\          \begin{htmlonly}       \end{tabular}     \end{htmlonly}          %\begin{latexonly}   % WARNING, SPECIAL COMMENT DO NOT REMOVE     \ifpdf       \end{longtabu}     \fi     %\end{latexonly}          \end{document}      and now when I do `pdflatex t9.tex` I get this error:               (./t9.out) (./t9.out)     ! Misplaced alignment tab character &.     <argument>  \fi \par a&                            b\\ c&d\\ \par \par \begin {htmlonly}      l.22   \end{tabular}      Which means `tabu` is looking at the `tabular` env. But this environment should never been seen by `tabu`. Compare the above now, when I just use `longtable`. No `tabu` now. It works:               \documentclass{article}%     \usepackage{html}     \usepackage{ifpdf}     \usepackage{longtable,tabu}          \begin{document}          \begin{htmlonly}      \begin{tabular}{|l|l|}     \end{htmlonly}          %\begin{latexonly}   % WARNING, SPECIAL COMMENT DO NOT REMOVE      \ifpdf        \begin{longtable}{|l|l|}       \fi     %\end{latexonly}          a&b\\     c&d\\          \begin{htmlonly}       \end{tabular}     \end{htmlonly}          %\begin{latexonly}  % WARNING, SPECIAL COMMENT DO NOT REMOVE     \ifpdf        \end{longtable}     \fi     %\end{latexonly}          \end{document}      and now no error               >pdflatex t9.tex      This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      restricted \write18 enabled.     .....     Output written on t9.pdf (1 page, 10799 bytes).     Transcript written on t9.log.     >      **question is:** why is `tabu` reading my `htmlonly` code? I need to use `longtabu` since I read it can make longtable with same settings as `tabularx` which I needed. I am using (TeX Live 2012/Debian) on Linux mint 14.


title: Lists of figures and table - Print "Figure X.Y - "

text: I want to customize my lists of figures and tables so that it looks like this:               Figure 1.1 - Name of the fig.     Figure 1.2 - etc.      I am currently using the `tocloft` package and managed to have               Figure 1.1 Name 1     Figure 1.2 etc      with the code :                \documentclass{book}        \usepackage{tocloft}      \renewcommand{\cftfigfont}{F\textsc{igure} }      \renewcommand{\cfttabfont}{T\textsc{ableau} }      \begin{document}      \listoffigures      \begin{figure}[h]      \begin{center}             % My fig             \caption{Test 1}         \end{center}     \end{figure}     \end{document}      but I miss the dash (which appear in the regular caption in the main corpus by the way). Any idea of how to do that ?


title: Can't draw a commutative diagram

text: I'm trying to draw a commutative diagram using `xymatrix`:               $\xymatrix{     S \ar@[ld]^{\pi_{i}} \ar@[rd]^{\pi_{j}}\\     R_{i} \ar[r]_{\mu_{ji}} & R_{j} }$      without any luck. Any idea? EDIT: I'm trying to draw the following commutative diagram: ![enter image description here](http://i.stack.imgur.com/KtteL.png)


title: Missing Item number in enumerate

text: You would think that I would know better than to mess with an **egreg solution** , but in my defense I used a DavidCarlisle solution from \setbox vs. \sbox and \savebox - What are the differences I need to know about? to adapt egreg's solution to Proper way to detect empty/blank text. This has worked fine for me up until now, but when I attempt to use it within an `enumerate` environment it results in it gobbling up the item number: ![enter image description here](http://i.stack.imgur.com/f3w6D.png) Note that the item number is not gobbled for the case where there is no title to be used (Third Item). If I replace the `\sbox0{\begingroup\vbox{#1}\endgroup}` as per the original solution:               \sbox0{#1}      this particular MWE work, but causes problems elsewhere (not shown here). ## Question: So, what is the minimal change I could make to the existing `\sbox0` solution so that the item numbers is not gobbledr? I am disabling some macros within the `\begingroup` so as to eliminate any side effects so do need the grouping. ## Code:               \documentclass{article}     \usepackage{enumitem}          \makeatletter     \newcommand{\DoIfNonEmptyText}[1]{% Actually takes two parameters         %\sbox0{#1}%         \sbox0{\begingroup\vbox{#1}\endgroup}%         \ifdim\wd0=\z@\relax%              \expandafter\@gobble%         \else%             \expandafter\@firstofone%         \fi%     }%     \makeatother          \newcommand{\QuotableText}[3][]{%         % [#1] = optional title         % #2   = name for this (not relevant for this example)         % #3   = the content         \DoIfNonEmptyText{#1}{\textit{#1}:~}%         #3%     }%               \begin{document}     \begin{enumerate}         \item First Item         \item \QuotableText[Sub title]{Text One}{Second Item}         \item \QuotableText{Text Two}{Third Item}         \item Fourth Item     \end{enumerate}     \end{document}      * * * ## Update: Based on Frank Mittelbach's answer, I attempted to use my own `\savebox`, but it still exhibits the same output as above:               \makeatletter     \newsavebox{\@DoIfNonEmptyTextBox}%     \newcommand{\DoIfNonEmptyText}[1]{% Actually takes two parameters         \begingroup         \savebox{\@DoIfNonEmptyTextBox}{\vbox{#1}}% -- This still gobbles the item number!         %\savebox{\@DoIfNonEmptyTextBox}{#1}%        -- This works         \ifdim\wd\@DoIfNonEmptyTextBox=\z@\relax%              \endgroup\expandafter\@gobble%         \else%             \endgroup\expandafter\@firstofone%         \fi%     }%     \makeatother      but if I remove the `\vbox{}`, then this works just fine. So, how is the use of the `\vbox` (note: no use of `\sbox0` here), causing the enumerate item to disappear?


title: How to draw parentheses inside chemfig?

text: I have the following code:               \chemfig[][scale=0.6]{       CH_2=[:-30]CH-[:30]C(=[:90]O)-[:-30]O-[:30]CH_2CH_2-[:-30]O-[:30]C(=[:90]O)-[:-30]CH=[:30]CH_2     }      Which gives me this image: ![enter image description here](http://i.stack.imgur.com/b6sJX.png) Now I want to draw openening parentheses between O-CH_2CH_2 and closing parentheses between O-C. And to subindex the closing parentheses with an n. How can I achieve that? Do I have to use `tikzpicture` environement or the `\leftdelimiter(`. The problems I'm facing are alignment and length of the connector. EDIT I have some additional figure, how could I achieve the brackets in this case?               \newcommand\setpolymerdelim[2]{\def\delimleft{#1}\def\delimright{#2}}          \def\makebraces(#1,#2)#3#4#5{%       \edef\delimhalfdim{\the\dimexpr(#1+#2)/2}%       \edef\delimvshift{\the\dimexpr(#1-#2)/2}%       \chemmove{         \node[at=(#4),yshift=(\delimvshift)]           {$            \left\delimleft              \vrule height\delimhalfdim depth\delimhalfdim width0pt            \right.           $};         \node[at=(#5),yshift=(\delimvshift)]           {$             \left.               \vrule height\delimhalfdim depth\delimhalfdim width0pt             \right\delimright_{\rlap{#3}}           $};       }%     }     \setpolymerdelim[]     \chemfig[][scale=0.6]{       ?(-[2]CH_2-[@{op,.8}:180,3])(-[::-30,1.5]O-[::+60](-[:-30,1.5]O-[@{cl,.8}:0,3])<[::-150,1.5](-[:-50]O(-[7](=[6]O)-[1](-[7]CH_3)=[8]CH_2))-[::-90,1.5,,,line width=3pt](-[:45,1.5]OH)>[::+60]?(-[:-120]OH))     }     \makebraces(50pt,50pt){$\scriptstyle\!\!n$}{op}{cl}      And the image: ![enter image description here](http://i.stack.imgur.com/s7RIi.png)


title: Failure to install TexLive on Windows 8

text: I am trying to install TexLive 2012 on Windows 8 64 bit with the following results. > Loading - See URL below Installing TeX Live 2012 from: See URL below > > Platform: win32 => 'Windows' Distribution: net (downloading) > > Using URL: http://tezcatl.fciencias.unam.mx/tex- > archive/systems/texlive/tlnet > > Directory for temporary files: C:/Users/jonathan/AppData/Local/Temp > > Installing [0001/2603, time/total: ??:??/??:??]: 12many [376k] > > TLDownload::get_file: response error: 500 Can't use an undefined value as a > symbol reference > > permanent server connection set up, but downloading did not succeed!Retrying > with wget. > > Downloading > http://tezcatl.fciencias.unam.mx/tex->archive/systems/texlive/tlnet/archive/12many.tar.xz > did not succeed. > > Installation failed. Rerunning the installer will try to restart the > installation. I thought that the problem might be with the repository but when I tried to use --repository to select an alternate repository the flag was ignored and the problematic repository was used. Any ideas as to wher to proceed from here? I ould find nothing useful in the mailing list.


title: Drawing a isosceles triangle on Cartesian plane

text: An isosceles triangle is to be drawn on the Cartesian plane. The two legs of equal length are to be in the first and second quadrants. (The code that I have gives angles of the two legs as 41 degrees and 122 degrees with respect to the positive x-axis.) The two legs are to be labeled "1" and the third leg is to be labeled "c" - I guess below the edge so as not to interfere with the circle. In the following code, the two legs having an endpoint at the origin are to be of length 1. How can I get TikZ to do the necessary calculations so as to keep the angles of 41 degrees and 122 degrees? The origin is labeled "O" but it interferes with the y-axis. I would like to overlay it or move it to the third quadrant. (I tried the command `\node[mydot,label={below,left:$O$}] at (O) {};`.)               \documentclass[10pt]{amsart}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{mathtools,array}          \newlength{\widestright}     \newenvironment{horriblesystem}[1]      {\settowidth{\widestright}{${}=#1$}%       \left\{\,       \begin{array}{@{}r@{}>{\raggedright\arraybackslash${}}p{\widestright}<{$}@{}}}      {\end{array}\right.}          \usepackage{tikz}          \tikzset{     mydot/.style={       fill,       circle,       inner sep=1.5pt       }     }          \begin{document}          \begin{tikzpicture}[>=latex]               % the coordinates of the vertices     \coordinate (O) at (0,0);     \coordinate (A) at (2,1);     \coordinate (B) at (-3,5);          % the axis     \draw[help lines,->] (-3.5,0) -- (2.5,0);     \draw[help lines,->] (0,-0.5) -- (0,5.5);          % the edges of the triangle     \draw (O) -- (A) -- (B) -- cycle;          % labelling the vertices     \node[mydot,label={right:$A$}] at (A) {};     \node[mydot,label={left:$B$}] at (B) {};     \node[mydot,label={below:$O$}] at (O) {};          % the arcs for the angles     \begin{scope}[gray]     \draw[->]       (1,0) +(0:0.5cm) arc [radius=1cm,start angle=0,end angle=41] node[midway,right] {$\alpha$};     \draw[->]       (0.5,0) +(0:0.25cm) arc [radius=0.75cm,start angle=0,end angle=122] node[midway,above] {$\beta$};     \end{scope}          \end{tikzpicture}          \end{document}


title: No text from epslatex terminal in gnuplot

text: I am trying to use the epslatex terminal in gnuplot, using the example code from this site. Copying and pasting this example and running the gnuplot script produces the following output: ![naked plot](http://i.stack.imgur.com/vsTvo.png) No labels! This happens under Ubuntu 11.10 using gnuplot 4.4.4 and under Arch using gnuplot 4.6.0. Looking at the output `.tex` file it seems that the label text is there in the file, but might be put outside the plot area:               \begin{picture}(5040.00,3772.00)%       \gplgaddtomacro\gplbacktext{%         \csname LTb\endcsname%         \put(860,1122){\makebox(0,0)[r]{\strut{}$-1$}}%         \put(860,2086){\makebox(0,0)[r]{\strut{}$0$}}%         \put(860,3049){\makebox(0,0)[r]{\strut{}$1$}}%         \put(980,440){\makebox(0,0){\strut{}$-2\pi$}}%         \put(1875,440){\makebox(0,0){\strut{}$-\pi$}}%         \put(2770,440){\makebox(0,0){\strut{}$0$}}%         \put(3665,440){\makebox(0,0){\strut{}$\pi$}}%         \put(4560,440){\makebox(0,0){\strut{}$2\pi$}}%         \put(160,2085){\rotatebox{-270}{\makebox(0,0){\strut{}$y$}}}%         \put(2770,140){\makebox(0,0){\strut{}$x$}}%       }%         \gplgaddtomacro\gplfronttext{%         \csname LTb\endcsname%         \put(3725,3238){\makebox(0,0)[r]{\strut{}$\sin(x)$}}%       }%         \gplbacktext       \put(0,0){\includegraphics{terminal_epslatex-inc}}%       \gplfronttext     \end{picture}      Any ideas as to why there would be no label text visible here?


title: external reference with lyx

text: I am attempting to reference labels in an external LyX document. I have found how to do this using the `xr` package in `.tex` files. However, I see no way of doing this in LyX without having to export to `.tex` first. Has anyone figured out how to refernece external documents in LyX without having to export to `.tex` first?


title: how to prevent combine ends of arcs of tikz-dependency

text: How to prevent the arcs from combining with `tikz-dependency`, like ![enter image description here](http://i.stack.imgur.com/90d5c.png) two arcs starting from "had" are separated from each other. but in the picture generated by the following code, below they are not separated,               \documentclass[12pt]{article}     \usepackage{tikz-dependency}          \begin{document}          \begin{dependency}[theme = simple, edge horizontal padding=3pt]     \begin{deptext}[column sep=1em]     A \& hearing \& is \& scheduled \& on \& the \& issue \& today \& . \\     \end{deptext}     \depedge{1}{3}{ATT}     \depedge{2}{3}{ATT}     \depedge{3}{8}{SBJ}     \depedge{3}{9}{PU}     \depedge{5}{8}{VC}     \depedge{4}{8}{TMP}     \depedge{6}{8}{PC}     \depedge{7}{8}{PC}     \end{dependency}          \end{document}      ![enter image description here](http://i.stack.imgur.com/9zHDr.png) I have read the `tikz-dependency` manual, and add the parameter 'edge horizontal padding', but the resulting picture is the same. Is there a way to prevent the default arc combination?


title: Beamer presentation: List of frames within a section / part with the use of [allowframebreaks]

text: Please see Beamer presentation: List of frames within a section / part. I have copy-pasted Gonzalo Medina's example code below. Uncommenting the [allowframebreaks] or using it in any other frame that is also to be listed in the lbf file results in an error. Is there a way of obtaining the same result WITH the use of [allowframebreaks], assuming the context requires its use ?               \documentclass{beamer}     \usetheme{Berkeley}          \newif\ifframeinlbf     \frameinlbftrue          \makeatletter     \newcommand\listofframes{\vfill\@starttoc{lbf\thesection}}     \makeatother          \addtobeamertemplate{frametitle}{}{%       \ifframeinlbf       \addcontentsline{lbf\thesection}{section}{\protect\makebox[2em][l]{%         \protect\usebeamercolor[fg]{structure}\insertframenumber\hfill}%       \insertframetitle\vfill}%       \else\fi%     }          \begin{document}          \section{Test Section One}          \frameinlbffalse     \begin{frame}     \frametitle{List of Frames for Section One}     \listofframes     \end{frame}          \frameinlbftrue     \begin{frame}%[allowframebreaks]     \frametitle{Test Frame One One}     test     \end{frame}          \begin{frame}     \frametitle{Test Frame One Two}     test     \end{frame}          \section{Test Section Two}          \frameinlbffalse     \begin{frame}     \frametitle{List of Frames for Section Two}     \listofframes     \end{frame}          \frameinlbftrue     \begin{frame}     \frametitle{Test Frame Two One}     test     \end{frame}          \begin{frame}     \frametitle{Test Frame Two Two}     test     \end{frame}          \begin{frame}     \frametitle{Test Frame Two Three}     test     \end{frame}          \end{document}


title: LyX: Citation shows up as [#] rather than (Author, Year)

text: I've been having the same problem as this person. My citations show up as [#], and not in the desired format (Author, Year). I have checked natbib as advised: ![enter image description here](http://i.stack.imgur.com/Vur1t.jpg) , and also in the citation menu itself: ![enter image description here](http://i.stack.imgur.com/kmXzB.jpg) However, the PDF prints still only give me [#]. Any ideas? Edit: My BibTex is an export file from Mendeley, and looks quite normal. Thank you so much in advance.


title: Inserting a quote onto the (otherwise blank) left-hand-side page of a book

text: > **Possible Duplicate:**   >  Add a quote to a blank page centered I am writing a thesis in `\documentclass{book}`. I wish to insert a quote on the blank page that comes after my preface and before my first chapter. How might I go about doing that?


title: How to type tensor multiplication with vertical dots?

text: I want to type this equation in LaTeX. How do I type those vertical dots symbol? ![](http://i.stack.imgur.com/5UmGG.jpg)


title: How to produce a two column text with separation line with single-column title and end text

text: ![enter image description here](http://i.stack.imgur.com/Ius0T.png) How can I produce the file as a PDF in LaTeX. I have done the following               \documentclass[a4paper,twocolumn]{article}     \usepackage[margin=0.5in]{geometry}      But I have the following problem. I want to put the Title inside a box which has thick lines. Also if I use the `\maketitle` command, date comes below the title, which I do not wish to have. Also I want to separate the column by a line of specified thickness. Command lines will be useful.


title: pst-circ monospaced labels

text: How can I make all labels in my circuit monospaced? I found this: Can I change all math output to use monospaced text? but this also affects my equations outside figures.                   \documentclass{minimal}         \usepackage{pst-circ}         \usepackage{amsmath}         \everymath{\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}         \usepackage[utf8]{inputenc}         \begin{document}         \setbox0\hbox{$ $}             \begin{pspicture}(5,2)             \psset{linewidth=1pt}             \pnode(0,1){A}             \pnode(3,1){B}             \pnode(5,1){C}             \newdiode(A)(B){$D_1$}             \resistor(B)(C){$R_1$}             \end{pspicture}         $ \frac{1}{2\sqrt{x}} $         \end{document}      ` Can I redefine pst-circ label command to use monospaced font?


title: Matrices in ConTeXt?

text: I'm typesetting up some linear algebra notes, and in the process moving from LaTeX to ConTeXt. What is the most efficient method of entering matrices in ConTeXt? I can use plain TeX:               \startformula     \left[matrix{     1&2&3\cr     4&5&-6\cr}     \right]     \stopformula      which is OK, but typesets all elements centered in their columns. To obtain right-aligned elements I'd have to add lots of `hfill`'s through the matrix. Alternatively:               \startformula     \startmmatrix[align={right,right,right}]     \NC 1 \NC 2 \NC 3 NR     \NC 5 \NC 6 \NC -6 \NR     \stopmmatrix     \stopformula      which works, but is very wordy and cumbersome (I much prefer the "&, \" of LaTeX here). What is the canonical way of obtaining right-aligned entries in ConTeXt? Thanks!


title: Top padding inside tabular when using parbox

text: I need to fake a caption under an image, since you can't use figure/caption inside tabular/longtable environments (afaik). The data inside the table are generated dynamically so I don't know the height of the image from time to time. I know the width though. So, to fake the caption I use a parbox inside a table cell to encapsulate the image and caption. Finally, the problem: I need more padding in the top of the cell. In the following minimal example the rule clamps to the top of the cell with no padding at all.               \documentclass[10pt,a4paper]{article}     \usepackage{longtable}     \begin{document}     \begin{longtable}{| p{105 mm} |}     \hline     HEADER \\     \hline     \parbox[t]{10cm}{     \rule{100mm}{50mm}     Fake caption     \strut}\\     \hline     \end{longtable}     \end{document}      Possible solutions include removing parbox and use something else. The important part here is that I want to fake the caption under the image and I need it to be in an tabular environment. Edit1: Added vertical borders to the example code.


title: Times they are changing (font differences Mac/LaTeX)

text: Our designer developed a cover using times and small caps. We tried to implement this in LaTeX but for reasons we do not understand the words come out longer in LaTeX. ![Original Design](http://i.stack.imgur.com/3hbB9.png) ![Our results in LaTeX](http://i.stack.imgur.com/vSgHT.png) Is there anything we can do about this?


title: \DTLdeletedb (from datatool package) has no effect within \foreach

text: > **This question led to a new feature in a package:**   >  `datatool` `\DTLgdeletedb` is available in (v2.13) and later. * * * I am trying to use a `\foreach` loop to iterate over a few items. For each iteration of the steps of `\ExtractData` are:   1. Load the data into `mydb`.   2. Extract the appropriate data.   3. Delete `mydb`. This works just fine outside of a `\foreach`. But if used within a `\foreach`, it appears that the database is not deleted, and any subsequent attempt to create a new database with the same name fails with: > Package `datatool` Error: Database `myDB' already exists. ## Notes:   * The MWE example below, shows that that database access is working fine outside of a `\foreach`, and within the very _first_ invocation within a `\foreach`.   * The failure occurs **only** if an attempt is made to use `\ExtractData` after a use within the `\foreach`. So uncommenting any of the commented blocks will show the failure.   * Before someone asks why I close and re-open the same db, in my actual usage, the data file opened is different for each member of the `\foreach`. Just the name of the data base is the same. I guess I could create a new name each time, but I'd really like to know what the actual problem is. ## Reference:   * This question about Datatool : can't use \DTLreplaceentryforrow in nested loop “foreach” seems somewhat related but since I am not using a `\DTLforeach` to iterate thru the database, I don't think it helps me. ## Code:               \documentclass{article}          \usepackage{filecontents}     \begin{filecontents*}{foo.dat}         Smith, John, 1977-05-04         Doe,   Jane, 1980-05-04     \end{filecontents*}          \usepackage{xstring}     \usepackage{pgffor}     \usepackage{datatool}          \newcommand{\ExtractData}[3]{% #1=file name #2=row, #3=col         \DTLloaddb[noheader,keys={LastName, FirstName, DOB}]{myDB}{#1}%         \IfEq{\DTLrowcount{myDB}}{0}{%             \def\Value{NO VALUE}         }{%             \DTLgetvalue{\Value}{myDB}{#2}{#3}%         }%         \DTLdeletedb{myDB}%         \Value%     }          \begin{document}     \section{Works}     \ExtractData{foo.dat}{1}{2}     \ExtractData{foo.dat}{1}{1}          \section{Works in foreach (one element)}     \foreach \x in {2}{         \ExtractData{foo.dat}{1}{\x}     }          \section{Does NOT work subsequent to foreach (one element)}          %\ExtractData{foo.dat}{1}{1}          %\foreach \x in {1}{     %   \ExtractData{foo.dat}{1}{\x}     %}          \section{Does NOT works in foreach (more than one element)}     %\foreach \x in {2,1}{     %   \ExtractData{foo.dat}{1}{\x}\par\noindent     %}     \end{document}


title: \centerline messes up the Table of Contents

text: If I use `\centerline` to get my chapter title centred, the corresponding entry in the Table of Contents is also being centered. Is there any way around this?               \documentclass{report}     \usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry}     \usepackage[onehalfspacing]{setspace}     \usepackage{titlesec}          \titleformat{\chapter}[block]       {\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{1em}{}     \titlespacing*{\chapter}       {0pt}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus.2ex}          \\hypersetup{linkcolor=black}     \rfoot{}     \tableofcontents     \addtocontents{toc}{\par\textbf{Name of the Chapter}}     \addtocontents{toc}{~\hfill\textbf{Pg.No}\par}     \addtocontents{toc}{\protect\afterpage{~\hfill\textbf{Pg.No}\par\medskip}}          \begin{document}          \chapter{\centerline{Title}}     Some text.          \end{document}      This is what I'm getting: * * * ![I'm getting this](http://i.stack.imgur.com/gbbnq.jpg) * * * This is what I want: * * * ![I want this](http://i.stack.imgur.com/bnDxw.png)


title: How to \ref a \subsubsection

text: I'm trying to reference 2 subsubsections from my document. My structure is like:               \chapter{something}     \section{1.1}     \subsection{1.1.2}     \subsubsection{Number 1} \label{sssec:num1}     \subsubsection{Number 2} \label{sssec:num2}      I'm trying to reference both the subsubsections from my section 1.1 above. But when I use \ref{sssec:num1} and \ref{sssec:num2}, the reference is always pointing to the \subsection{1.1.2} for some reason. My ToC depth is 2, so it's only showing as far as the subsection. Does anyone know a fix to this? Thanks


title: Change distance between page number and bottom edge of page

text: I am trying to make my page numbers `.75in` from the bottom of the page. Currently they are about `.5in` or so. I think `\usepackage{fancyhdr}` will work but what is the option to change this without changing anything else in the document?


title: TikZ flowchart for a poster

text: I'm making a poster and need to include a flowchart. I've never done this, so I'm starting with the example in the manual. Problem is, it doesn't work.               ! Package pgfbasematrix Error: Single ampersand used with wrong catcode.      I googled but none of the solutions found so far fixed this. As I'm a total newb to TikZ, a matrix seems simpler to me, so I would really like to use it. This is the ME (although I can't compile it, and the errors are different from my full-blown document):               \documentclass{article}     \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,matrix}     \begin{document}     \begin{tikzpicture}         [auto,             decision/.style={diamond, draw=blue, thick, fill=blue!20,text width=4.5em, text badly centered,inner sep=1pt},             block/.style={rectangle, draw=blue, thick, fill=blue!20,text width=5em, text centered, rounded corners,minimum height=4em},             line/.style={draw, thick, -latex’,shorten >=2pt},             cloud/.style={draw=red, thick, ellipse,fill=red!20,minimum height=2em}]              \matrix [column sep=5mm,row sep=7mm]           {           % row 1             \node [cloud] (expert){expert}; &             \node [block] (init){initialize model}; &             \node [cloud] (system){system}; \\           % row 2             & \node [block] (identify) {identify candidate model}; & \\           % row 3               \node [block] (update){update model}; &               \node [block] (evaluate) {evaluate candidate models}; & \\           % row 4             & \node [decision] (decide) {is best candidate}; & \\           % row 5             & \node [block] (stop){stop}; & \\           };     \begin{scope}[every path/.style=line]       \path   (init)-- (identify);       \path   (identify) -- (evaluate);       \path   (evaluate) -- (decide);       \path   (update)|- (identify);       \path   (decide)-| node [near start] {yes} (update);       \path   (decide)-- node [midway] {no} (stop);       \path [dashed] (expert)-- (init);       \path [dashed] (system)-- (init);       \path [dashed] (system)|- (evaluate);     \end{scope}     \end{tikzpicture}     \end{document}      My question is: what's wrong? This is my first contact with TikZ, so I'm totally lost.


title: How to add a photo to moderncv style banking

text: I'm writing this post because I'm trying to let appear the photo on the `moderncv` using the `banking` style, but from default isn't possible. So I would to know how to show the photo using the `banking` style and possibly putting the photo at the top of the first page above the name and title.


title: Hyperref, Bookmark and Appendix packages: Getting labels inside Appendices to work

text: I've been writing a document in portuguese and I've ran across a nasty problem. I've been trying for the past few hours to get hyperref and bookmark to play nice with my labels inside the appendices ambient to no avail. I keep getting weird, incomplete error messages (undefined control sequence) that I just can't seem to solve. I feel like it has something to do with the altered appendix page name, but I'm not so sure about that one. Below, you'll find a non-working example that outputs the exact same error messages I'm getting on my main .tex file. I'd appreciate any help you can give me! I just can't seem to solve this one on my own.               \documentclass{article}     \usepackage[portuguese]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[unicode]{hyperref}     \usepackage{bookmark}     \usepackage{fancyvrb}     \usepackage{parskip}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage{float}     \usepackage[toc,page]{appendix}     \usepackage[margin=1.3in]{geometry}          \addto{\captionsportuguese}{\renewcommand{\appendixpagename}{Apêndice}}     \epstopdfsetup{outdir=./}          \begin{document}     \section{Test}     \subsection{SubTest}          Ref'ing an appendix \ref{figure_flowchart1}; \ref{figure_flowchart2}.          \begin{appendices}     \section{Diagrama 1 - Atualização de Paridade, 1 Bloco de Dados}\label{figure_flowchart1}     \begin{figure}[H]     \centering     \includegraphics[scale=0.5]{Flowchart1.eps}     \end{figure}          \section{Diagrama 2 - Atualização de Paridade, >1 Bloco de Dados}\label{figure_flowchart2}     \begin{figure}[H]     \centering     \includegraphics[scale=0.5]{Flowchart2.eps}     \end{figure}     \end{appendices}          \end{document}


title: pdfLaTeX produces different outputs from the same file

text: I am writing a report using LaTeX and I am quite confused about something. I am working with TeXShop, and the output produced after compiling sometimes changes. Let me show some screenshots   * Here you cansee the desired output ![normal text](http://i.stack.imgur.com/zQfoN.jpg)   * But sometimes the output looks like this, with the strange font ![anormal text](http://i.stack.imgur.com/MQfpk.jpg)   * Same for formulas, the desired output is ![normal formula](http://i.stack.imgur.com/y5qW2.jpg)   * But sometimes it looks more like this ![anormal formula](http://i.stack.imgur.com/RzhML.jpg) It is crucial to note that the _.tex_ source file is exactly the same for all the previous examples. **How is it possible that pdfTeX produces different outputs? Have I done something wrong in the source file? Is it my TeX distribution that has issues or my computer?** * * * This is the preamble of my _.tex_ file, just in case something obvious stands in it:               \documentclass[10pt]{report}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}          \usepackage{amsmath}     \numberwithin{equation}{chapter}     \usepackage{bbold}%necessaire pour le caractere 1 qui represente l'identite matricielle     \usepackage{tikz}          \addto\captionsenglish{\renewcommand{\chaptername}{Part}}          \usepackage{titlesec}%modification de la gueule des sections,etc          \titleformat{\chapter}[display]     {\Huge\normalfont\filcenter\scshape\bfseries\sffamily}     {\rule[0pt]{1cm}{1cm}\hfill\thechapter     %\vspace{1pt}     \hrule}     {-25pt}     {}     \titleformat{\section}[hang]     {\large\normalfont\scshape\bfseries}     {\thesection}     {1em}%10pt     {}     \titleformat{\subsection}[hang]     {\normalfont\scshape\bfseries}     {\thesubsection}     {1em}%5pt     {}     \titleformat{\subsubsection}[runin]     {\normalsize\normalfont\scshape}     {}     {1em}     {\rule{5pt}{5pt}\quad}          \bibliographystyle{plain}          \usepackage{geometry}     \geometry{a4paper}          %macros definition     \newcommand\com[2]{\left[#1,#2 \right]}     \newcommand\abs[1]{\left|#1 \right|}     \newcommand\mean[1]{\left\langle #1\right\rangle}     \newcommand\dd[2]{\frac{\mathrm{d}#1}{\mathrm{d}#2}}     \newcommand\ddd[2]{\frac{\mathrm{d}^2#1}{\mathrm{d}#2^2}}     \newcommand\pdd[2]{\frac{\partial#1}{\partial#2}}     \newcommand\pddd[2]{\frac{\partial^2#1}{\partial#2^2}}     \newcommand\cc{\mathrm c . \mathrm c .}     \newcommand\hc{\mathrm h . \mathrm c .}     \newcommand\myvec[2]{\left(\begin{array}{c}#1\\#2\end{array}\right)}     \newcommand\mymat[4]{\left(\begin{array}{cc} #1 & #2\\ #3 & #4\end{array} \right)}     \newcommand\sign{\operatorname{sign}}     \newcommand\Cin{\operatorname{Cin}}          \begin{document}      And the compiler:               This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)


title: siunitx does not work with overline

text: When I am typing a laboratory for physics, I tried using `\overline` inside `SI` from the `siunitx` package, like so:               \begin{align}     \begin{split}     s &= \frac{d}{t}\\     &= \frac{\SI{1.15}{m}}{\SI{1.43}{s}}\\     &= \SI{0.\overline{804195}}{m/s}     \end{split}     \end{align}      But it seems that it does not work when you have `\overline` inside `SI`, does anyone know how to fix this?


title: How to use the contents of a file as a number

text: I want to create a loop including n images.The number n is the only content of a help file (created by the application that generates the images).   Is it possible to read the contents of the help file and use that as a number variable to set the loop? The following code works:               \def\cnt{\input{numberfile}}     \cnt      Output is the number (i.e. the content of the file). The following code doesn't work:               \newcounter{cnt}     \setcounter{cnt}{\input{numberfile}}     \arabic{cnt}      The error indicates that the input isn't a number ("Missing number, treated as zero"). So how can I convert the input file to a LaTeX number?


title: Problem with \widehat in the package yhmath

text: `\widehat` has a strange behavior when the package `yhmath` is loaded. In particular, when I compile the following               \documentclass{article}     \usepackage{yhmath}     \begin{document}     $\widehat{C(,c)}$     $\widehat{C(x,c)}$     \end{document}      everything's fine for the first `widehat` expression, but for the second, there is a right parentheses after the hat. ![enter image description here](http://i.stack.imgur.com/FhTRa.jpg) Is there an error in the code or is there another way to solve this problem? Thanks in advance.


title: Alternating row colours in tabulary?

text: I managed to get alternating row colours working when using `tabular` but when I converted them to `tabulary` to make the tables match `\textwidth` the row colouring became messed up. Now it completely ignore the defined starting row and also changes the colour of the rows depending on the number of rows in the table. For example if there are an odd number of rows the top cell is grey, but when I add another row and make the number of rows even, the top cell becomes white. My code for such a table is below:               \documentclass{article}     \usepackage{tabulary}     \usepackage[table]{xcolor}     \definecolor{light-grey}{gray}{0.9}     %     \begin{document}     %     \begin{table}[h]     \rowcolors{2}{light-grey}{white}     \begin{tabulary}{\textwidth}{|l|L|}     \hline     \textbf{ID} & \textbf{Requirement} \\ \hline     REQ1      & Requirement 1 \\     REQ2      & Requirement 2 \\     \hline     \end{tabulary}     \caption{Functional Requirements}     \label{table:Functional Requirements}     \end{table}     %     \end{document}      T![enter image description here](http://i.stack.imgur.com/ko1Kx.png)his gives:


title: Freshman need to locally adapt SIunits

text: I just started to do my homework in `\LaTeX` to get ahead. (BTW, great motivation, learning two things at the same time.) Practicing the package SIunits at the moment. I live in scandinavia where we use **'mil'** as a unit for `\SI{10}{\kilo\meters}`. Is there a way I can make my own custom unit of measure to work with SIunits? Personally I am doing fine with just the kilometers but my curriculum is a bit more traditional. There are not many exceptions from the basic metric system like this so no need for another package (I think). I am grateful for any suggestions. 4th Edit:               \documentclass{article}     \usepackage{siunitx}     \DeclareSIUnit{\mil}{mil}     \begin{document}     \SI{1}{\mil}     \end{document}      This should work!


title: How can I change the math font in slides class?

text: I use the "slides" class to get full size equations for a presentation. (Yes, it needs to be in Powerpoint ;) ) However, I want to have the standard math font (like in the `article` class). There seems to be no option like `serif` for the `beamer` class. The reason, I'm not using the `beamer` class is that I get a "picture" just the size of my equation in Powerpoint with the `slides` class. With `beamer` or `article`, I get a bigger "picture" with a lot of white space around my equation. Minimum example:               \documentclass{slides}\pagestyle{empty}      \usepackage{amsmath}          \begin{document}       \begin{equation*}       \Omega      \end{equation*}      \end{document}