All Questions

3
votes
2answers
264 views

Presenting multiple figures in a proper and readable way under a same caption

I have 6 figures and I wanted to plot them in a proper way in a single page. It is important to remain readability. Moreover, including the sub-caption and sub-label is important. Possibly including a ...
13
votes
2answers
3k views

How to correctly set up Palatino font with math (related to pxfonts)

I've read many times here in TeX.SE that pxfonts has a lot of spacing inconsistencies, and that it's better to use mathpazo. The problem is that mathpazo doesn't load all the math symbols to match the ...
4
votes
1answer
5k views

Place figures at the bottom of a page

Does anyone know how to place figures at the bottom of a page ? At the moment, it automatically goes at the top of a new page... I am using LyX.
2
votes
0answers
89 views

Counting occurences in TeXnicCenter’s search and replace [closed]

Using TeXnicCenter 2.0 alpha 4 to run MiKTeX 2.9. When performing a Replace specimen1 with specimen2 under Seach\Replace, the output used to show how many occurences had been found. This was an ...
12
votes
2answers
3k views

Horizontal enumeration in multiple columns

Consider the following minimal example: \documentclass{article} \setlength{\parindent}{0mm} \usepackage{paralist} \usepackage{tabto} \begin{document} \NumTabs{3} \begin{inparaenum} \item text ...
3
votes
1answer
395 views

How to avoid the break of framed/shaded?

I have a problem with the framed environment. I am writing a document (article), and several parts of it have a gray background. Unfortunately, when a new page comes, such a shaded environment is cut ...
3
votes
1answer
278 views

How to make the page number appear on the abbreviation list?

does anybody know how to make the first page of the abbreviation list have the page number? My abbrev. list is made of 3 pages and only the other two have the correct page numbering (roman). The first ...
2
votes
1answer
263 views

How to remove the line “Received; acceped” from title?

I am using the aastex.lyx template to write an article and I cannot find a way to remove the "Received; -------- Accepted" line coming after the title. Does anyone know how to remove it ?
12
votes
1answer
3k views

Positioning relative to page in TikZ

Consider the following: Let's say I have a dot. I would like to be able to position this dot anywhere on the page: at the corner, in the middle, anywhere. So far, despite poring over manuals and ...
1
vote
1answer
137 views

How to substitute some text in a existing PDF file while using includepdf

I have a existing PDF, and it is included into my document through \includepdf in package pdfpages, and I'm curious that can some text in the PDF file be substituted by some else? For example, I have ...
3
votes
1answer
2k views

Set my lstlisting at the exact place in my code (like “h” for figure)

When using lstlisting, my displayed code is sent back on the top of my page. I would like to have the same kind of option as: \begin{figure}[h] ... \end{figure} ie having displayed my code exactly ...
0
votes
1answer
135 views

Combining \obeyspaces and \read

It seems to be impossible to combine \obeyspaces and \read in the following manner: \newread\myread \openin\myread=myfile.txt \obeyspaces % Deleting this line removes the error \read\myread to ...
2
votes
1answer
1k views

MikTeX and TeXStudio portables both unpacked to usb flash drive. Now What?

I downloaded the portable packages of MikTex and TeXStudio, and unpacked them onto usb flash drive. I do not understand what to do next to configure the TeXstudio to use or work with the MikTeX. I ...
12
votes
4answers
8k views

language option supported in listings

I am afraid that listing doesn't support javascript. \begin{lstlisting}[language=javascript] ... \end{lstlisting} What am I doing wrong?
5
votes
1answer
337 views

Warning: \label in float, but not after \caption

In my document, I usually use two following ways to work with pictures: \begin{figure}[ht!] \centering \includegraphics[scale=0.6]{pic1.pdf} \caption{ description ...} ...
4
votes
2answers
7k views

Custom header/footer rules (fancyhdr?)

I want to be able to customize my header/footer so far that I can change the rules that separate it from the document. Look for example at http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf ...
3
votes
1answer
344 views

how to redefine \href to \htmladdnormallink when in \htmlonly?

I use Scientific word (SW), which generates Latex, then I process the Latex output using Latex2html (l2h) to generate HTML as the support for HTML is better with l2h than SW (table of contents, break ...
2
votes
1answer
1k views

Shortcut for export PDF on LyX?

Is there a shortcut in LyX for export to PDF? Is there any way to auto export on save?
4
votes
0answers
251 views

How to export biblatex data to HTML? [closed]

I've been using biblatex for a while, and I now want to export my biblatex citation data to HTML, too. There are bibtex2html and some other tools for bibtex, but I couldn't find any equivalent tool ...
3
votes
1answer
251 views

Lao, Vowels, XeLaTeX, fontspec

Can anyone see an error here? I'm using \newfontfamily{\L}[Script=Lao]{Lao Sangam MN} to switch to Lao, then using \L{ວຽງຈັນ}, but getting ວຽງຈ ັນ in the PDF. No luck in other fonts (all ...
4
votes
1answer
1k views

customizing minor ticks with pgfplots

I am plotting some simple data using pgfplots on a log-log scale. My code is: \documentclass{standalone} \usepackage{pgfplots, amsmath} \pgfplotsset{width=7cm,compat=newest} \pgfkeys{/pgf/number ...
0
votes
1answer
396 views

How to remove blank first page in document that contains only tables and figures [closed]

Actually I want to move my figures and tables to a separate LaTeX file. But when I compiled that new file I got a blank first page. So I want to know how can I remove that blank first page. By the ...
4
votes
1answer
184 views

Enforcing writing across full width of page whilst using the res document class

I am using \documentclass[margin]{res} to display the section titles of my document to the left of the body text and the section{Section_name} command works fine. However, I would like for some ...
2
votes
1answer
107 views

Ê character used in a template leads to square characters being added

I've downloaded a CV template to play with from here, all is going well when I'm outputting with XeLaTeX apart from one thing, I can't understand the use of the string Ê Ê Ê Ê& In this piece of ...
1
vote
0answers
33 views

draw a box for part of a matrix in math environment [duplicate]

Possible Duplicate: Highlight elements in the matrix I have a big matrix as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \tilde{M}_{R+1,N}= ...
2
votes
1answer
1k views

How can I select the engine for portable Texmaker?

I have a portable TexMaker in my memory. Portable TexLive 2012 is installed on it too. I want to make my documents with TexMaker using engine which in TexLive.
3
votes
1answer
1k views

Absolute positioning in beamer when using `show notes on second screen`: text on wrong page

If you compile the example below, you have a very comfortable way to put sources on the slides for for LaTeX beamer. However, if you uncomment the line with the option show notes on second screen, ...
4
votes
1answer
197 views

How would I typeset a two-column layout, where the headings are on the left side and the contents are on the right?

I'm trying to typeset my resume using TeX. I'll start off by showing an approximation of what I want to do with this picture: Note the red lines in the picture are only for illustrative purposes. ...
17
votes
3answers
728 views

Conflict between microtype, LuaLaTeX, and otf fonts when typesetting material in small-caps

I'm using the microtype package (microtype beta 2.5 build 08) to modify my document and I'd like to retain its functionality across all font shapes with the exception of small-caps (\scshape). How do ...
11
votes
1answer
127 views

Save an etoolbox list to a file … and read it after

I have a problem. I would like : to construct an etoolbox list to save this list in a temp file to read this list from this file at the next run to use this file. For any reason, I can't see the ...
7
votes
1answer
209 views

subcaption in LOF with hyperref

MWE: \documentclass{article} \usepackage{subcaption} \usepackage{hyperref} \begin{document} \listoffigures \begin{figure} \begin{subfigure}[b]{.5\linewidth} \centering\large A \caption{A ...
2
votes
1answer
828 views

How to make all the entries in a table verbatim font

I have a large table in the tabular environment and I need to make all the text verbatim font. I know I can use \begin{verbatim}...\end{verbatim} for all the entries but they are just too much for me ...
2
votes
2answers
487 views

Editing bst file to add “page” or “pages”

I've got this bst file http://pastebin.com/z6mXByj7 and am using this tex: \documentclass[10pt,oneside,letterpaper,spanish]{book} \usepackage[utf8x]{inputenc} \usepackage[activeacute,spanish]{babel} ...
9
votes
1answer
187 views

TikZ: positioning label at the end of a path

I'm trying in TikZ to find a general way to draw an arrow and label it at the end. Something like this works reasonably well: \draw[->] (0, 0) -- (1, 3) node[pos=1.1]{$\vec{v}$}; However, ...
5
votes
1answer
109 views

New command doesn't work the same as in-line code

I have a feeling that this is a profoundly stupid question but I cannot seem to solve it myself. I am trying to write an own macro to create a boxed paragraph. The code works fine in-line but when I ...
3
votes
1answer
1k views

Create a wrapfigure with side caption and place it in the upper right corner?

I want to use the wrapfig packet to wrap text around an image. Since the image is longer than wide I'd like the caption to be aside of the image. Finally, the image should be placed in the upper right ...
23
votes
3answers
705 views

Why does pdfTeX hang on this file?

MWE: \documentclass{minimal} \usepackage{commath, tikz} \begin{document} \begin{tikzpicture} \node {$:$}; \end{tikzpicture} \end{document} When I compile this, pdfTeX enters an infinite loop. Why?
13
votes
1answer
22k views

Page-wide table in two-column mode

I want a table that is as wide as the whole page in a document with option twocolumn. The table has to be inserted on the bottom of the page, but that is not necessary. I've tried: \begin{table*}[b] ...
2
votes
1answer
209 views

How to typeset variation of vector function?

In variational calculus, the first variation is written as \delta F for some functional F. Vectors are often typeset with boldface, i.e. \vec{x} becomes \mathbf{x}. If I want to typeset the first ...
5
votes
2answers
491 views

How to hide grid labels without redefining the grid style?

I want to hide the grid labels without redefining the grid style, is it possible? Note: Redefining the grid style only for hiding the grid labels seems to be an overkill solution. ...
19
votes
3answers
1k views

Can I mark ends of lines with a cross?

I have the following image: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{tkz-fct} \usetikzlibrary{arrows, ...
3
votes
0answers
41 views

Is there an easy way to comment out a whole block? [duplicate]

Possible Duplicate: Multi-line (block) comments in LaTeX Is it possible to comment out a whole block in LaTeX source? For example, like in Java: // This is an in-line comment. /* This ...
7
votes
2answers
895 views

Editing bst file to underline title

I could not find an option in makebst that would make the titles of articles be underlined, however, using emphasize in an otherwise correct bst I was able to underline it. Unfortunately this makes ...
3
votes
1answer
120 views

Why do I get different accents?

1) \begin{ttfamily}\verb 'OR'1'='1 \end{ttfamily} 2) \begin{ttfamily}\verb SELECT userid FROM CMSUsers WHERE user = 'foo' AND password = 'bar'; \end{ttfamily} I'd like to have the accents like the ...
4
votes
1answer
261 views

Multiple caption names for listings code (lstinputlisting) based on type of code

In my document I have used: \renewcommand\lstlistingname{Algorithm} \renewcommand\lstlistlistingname{Algorithms} to rename my lstlistings titles. The problem is that now I want to add a different ...
2
votes
1answer
2k views

twocolumn with minipage over full width

I'm trying to make something similar to http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf I'm using the twocolumn option, and have defined my own \showtitle command: \newcommand{\showtitle}{ ...
4
votes
3answers
1k views

Inserting some Arabic script in an English article

Until now I was using XePersian package to typeset Persian articles, now I want insert some Persian word in an English document, what is minimum code to do that without using XePersian package? ...
9
votes
1answer
346 views

Beamer does not restore roman style for emph inside emph

It seems that \em and \emph do not alternate between itshape and normal shape. How can this be restored? Test case: \documentclass{beamer} \begin{document} \frame{\em abc \emph{def \emph{ghi} jkl} ...
24
votes
2answers
1k views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
1
vote
1answer
89 views

strange behaviour same code but in different chapters

I've just come accross a problem I'm unable to solve. I use this code in chapter 2 and it all works fine : \begin{ttfamily} \begin{lstlisting} <?php $template = 'blue.php'; if ( is_set( ...

15 30 50 per page