3
votes
0answers
191 views

Switching math-mode numerals between serif and sans with the package mathspec

This may be a trite question, but I haven't found an answer and my tentative at it doesn't work. I am trying to set a document in which I use both serif and sans numerals in math mode. I am running ...
6
votes
1answer
642 views

How to align a set of my equations?

I just wan't to align the equation like this example (Of course, I can't align these equations on the web page): ∵△ABC ≌ △A′B′C′ ∴∠ABC = ∠A′B′C′ ∠ACB = ∠A′C′B′ ∠BAC = ∠B′A′C′ If I use &, ...
13
votes
1answer
1k views

uppercase and \spacefactor

Apparently, \uppercase forgets about the \spacefactor at the end. For example, {What is the spacefactor?} \the\spacefactor. returns What is the spacefactor? 3000. while \uppercase{What is ...
13
votes
2answers
5k views

piecewise function

So this is a piecewise defined function I have that I need to talk about: f(a,b) = \left\{ \begin{array}{lr} \text{open} & : \text{RMSD}_\text{s-open}\ge6, ...
24
votes
2answers
36k views

beamer style text box

If you're using beamer you can do some nice text boxes using: \begin{block}{block title}content of block\end{block} Which gives a text box something like this (the box with the header Esimerkki): ...
36
votes
2answers
42k views

How do I put text over symbols?

This is difficult for me to explain, but how do I put words over a symbol? For instance, I want to add words over an equal sign. Anyone know the command/syntax for that? Also adding ^ doesn't cut ...
2
votes
2answers
849 views

TeXworks linux vs windows

I have some documents that require extensive use of BibTeX files, and on the windows version of TeXworks there is the possibility of running pdflateX+MakeIndex+BibTeX, which is not present in the ...
11
votes
4answers
4k views

How to plot atan(x), sqrt(x) using PSTricks?

For example, this code works: \documentclass{minimal} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-5)(5,5) \psgrid[griddots=10,gridlabels=0pt, subgriddiv=0, ...
10
votes
1answer
1k views

Compiling tikzmanual example with chains and branches

Does someone know how I must compile the example of the tikz/pgf user manual (v2.10) in section 28.5: \usetikzlibrary{chains} \begin{tikzpicture}[every on chain/.style=join,every join/.style=->, ...
21
votes
2answers
229 views

\( \) don't work with TOC?

If I write this line of code \subsection{Ranger \( n \) boules distinguables dans \( M \) boîtes} I obtain an error over the second \) (./Probabilité.toc ./Probabilité.toc:8: LaTeX Error: Bad ...
3
votes
1answer
1k views

How remove dot after section number in ToC with babel's spanish?

I'm using the book document class and the babel package with the spanish option, I have a ToC like this: CHAPTER NAME 1.1. SECTION NAME 1.1.1. Subsection name 1.1.1.1. ...
7
votes
1answer
124 views

Where to put floats definitions?

I always use floats for figures, tables, graphs, and any other object that is not part of the text. LaTeX do a really good job. Normally I put the definition after the paragraph that contains the ...
3
votes
2answers
848 views

ifthenelse conditional & macro

Why I get the error below if I use the \ifthenelse{\boolean{@parts}}% {% }{} conditional (defined into classicthesis.sty) you try to comment it, you don't have any error? ...
6
votes
2answers
172 views

dtx file and history

The \changes command of DTX file is used to record changes. The \PrintChanges command print the list of change, sorted by number ... except when a number is greater than 10. To see the problem, I ...
9
votes
2answers
455 views

Matching the delimiters \{ and \} in AUCTeX

I'm using AUCTeX and would like the delimiters \{ and \} to be matched. How can I (permanently) achieve matching of these delimiters? The link I provided indicates that I should edit a syntax table, ...
8
votes
1answer
766 views

beamer: creating a special handout using pgfpage

I'm trying to make a sort of "trainer's guide" from a beamer presentation using pgfpage (cf. example below), but I have one problem: the handout does not work correctly for the last frame - and I ...
3
votes
1answer
2k views

Set header and footer rule color in memoir

Is there a way to set color for header and footer rule in memoir class? Using the following code: \documentclass[ebook,12pt,twoside,openany]{memoir} \usepackage{lipsum} \usepackage{graphicx} ...
0
votes
0answers
29 views

Chapters on the same page or not displaying parent counters [duplicate]

Possible Duplicate: Start new chapter on same page Using the scrbook class so far, what I want is either to get new chapters to start on the same page as the last one (after a reasonable ...
18
votes
2answers
2k views

Coloring a black and white PDF graphic

I have a graphic in PDF format (originally converted from an SVG) that is monochromatic (black on white). Is it possible using TikZ or PSTricks but not (Illustrator or Inkscape) to include this image ...
10
votes
1answer
602 views

Creating temporary definitions for commands

In the context of writing something like homework solutions for a math class, I often face an awkward situation. Each problem will have some idiomatic functions that are cumbersome and error prone to ...
2
votes
0answers
4k views

Problem with quick build [closed]

I just started using texmaker and have now faced a problem with viewing the made file as a pdf-file. I have selected the PdfLaTex + View PDF setting from the Quick Build Command -list. And next to the ...
1
vote
1answer
195 views

Properly reference figure? [duplicate]

Possible Duplicate: Figure numbers using the section number I have a figure inside a section, like: \subsection{Something} \begin{figure}[htbp] \centering ...
36
votes
2answers
41k views

gif image in beamer presentation

I wish to display some animations in my beamer presentation. The most trivial way that comes to my mind is to use a gif image. How can I put it in the presentation and what should I use to display it? ...
1
vote
1answer
280 views

Stacking tables with the geometry package included

I am new to LaTeX. I am trying to stack tables one on top of another but I seem to be having a problem doing that while including the geometry package. I am doing this in order to simulate very ...
4
votes
1answer
194 views

How to do y-split for tree nodes in pstree?

As I need to draw lines between edges, I'd like to have y-splits when there are multiple child nodes. At the moment I realized it through a hidden node and nodesep=0. Unfortunately, I don't know of ...
4
votes
1answer
303 views

Whitespace before \cite that ends a sentence or a paragraph

If I summarize content from another source, I'll use \cite to reference the author. In natural sciences it seems to be standard to use \cite at the end of the sentence or paragraph that containts ...
5
votes
1answer
14k views

Change the \frametitle font size; height also affected?

I want to change only the \frametitle font size. Changing this, is the height of the frame title going to decrease also? Because I want that. I'm using the Warsaw theme.
7
votes
1answer
1k views

How to adjust brace size for nested braces?

How can I adjust the size of the outer braces to make the following equation neater? \documentclass[a4paper]{scrreprt} \usepackage{amsmath} \begin{document} \[ M = \left\{ x \in X : ...
4
votes
1answer
2k views

Including Hebrew text in a non-Hebrew document (Babel not working)

I need to introduce one Hebrew word in a document. I have been trying to add an hebrew option in my Babel includepackage command, as in the following code, but it does not work: it triggers a clash ...
0
votes
1answer
310 views

What are some quick ways to turn an article into presentation slides?

My article is like \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \section*{...} ... ...
4
votes
1answer
289 views

Check if non-empty subsection exists under another section

I'd like to try to make a LaTeX class which enforces a number of (non-empty) sections to exist-- if the user doesn't define them manually, then some default section content will be created. ...
2
votes
1answer
395 views

Math slides looking like notes

I have seen some slides that look close to notes. For example,this one. I wonder what templates they are created? Not seem like by beamer, as there are more contents in each slide and not fancy at ...
3
votes
1answer
613 views

xelatex memory problem [closed]

I have problem while running xelatex: TeX capacity exceeded, sorry [main memory size=1500000]. I tried increasing memory limits in texmf.cnf (also ran fmtutil-sys), but I hit maximum allowed and it ...
2
votes
1answer
492 views

Numbering trees/diagrams in tikzpicture

I want to number my trees/diagrams according to section number and at the center and bottom of them. Like Diagram 1.1 Here is a simple one that I wrote. \usepackage{tikz} \usepackage{amsfonts} ...
3
votes
1answer
354 views

Create line between two edges in pstree

Basically I want to create a (dashed) line between two tree edges. I tried cheating a bit and created such line manually between two hidden nodes. The problem is, I don't get them hidden! There's ...
10
votes
2answers
1k views

Draw a railway network in Tikz

I need to make several diagrams of a railway network, each of them representing different scenarios. Here is an ugly example of what I want: And here my first attempt to reproduce it: As you can ...
6
votes
1answer
751 views

TOC “Appendices” wrongly entry comes after 1st appendix entry when use \include

I use the appendix package with its toc option for a book document. If the first of several appendices is inserted by using \include, then the "Appendices" heading in the TOC incorrectly appears after ...
7
votes
1answer
20k views

Transparent image background in beamer

I want to add a background image in my beamer presentation. The thing is that when I use \usebackgroundtemplate{ \includegraphics[width=\paperwidth, height=\paperheight]{cern-logo.jpg} } in my ...
2
votes
1answer
413 views

a way to use bibliography utf8 @string entry keys

Any suggestions how to allow UTF-8 @string macros in the mwe.bib file? [lines 537-539] @string{ Uà = {Università} #. } @string{ Uàdi = Uà#di ...
5
votes
1answer
2k views

Suppress field using chicago bibliography style

I am using the natbib package and chicago style to create my reference list. Some of the references in the bib file contain a field called "note" which is printed if I use the following: ...
10
votes
5answers
14k views

Text alignment on top with multirow command

\begin{table}[!h] \centering \caption{Titel} \resizebox{.95\columnwidth}{!}{% \begin{tabular}{p{4.5cm}p{10cm}p{3.5cm}} \hline Name & ...
2
votes
1answer
3k views

Page header alternatively author name and short title

I'm using the a4paper environment for a scientific article and I want to make headers that display alternatively author names and short title each page, while getting rid of all page numberings. We ...
6
votes
0answers
55 views

How to put a blank space having dimensions equal to some text [duplicate]

Possible Duplicate: How to replace a large block of text by an empty block of the same size? A friend of mine is preparing some teaching materials. In the version for the lecturer there ...
4
votes
3answers
259 views

How to create a table with a headline centered and columns centered?

I use the following code to create a table with a centered headline. \begin{tabularx}{\textwidth}{l|X} \multicolumn{2}{c}{Headline centered} \\ \hline Column1 & Column2 which should be ...
3
votes
1answer
133 views

A command/environment for “spot the error” type of multiple choice tests

I wonder if there is already a package that makes me create a spot the error kind of test like the one below: This must preferably be in an enumerate environment. I tried a tikz approach but I ...
13
votes
3answers
15k views

Two logos in opposite side on beamer

I am making a presentation in beamer. Because I am affiliated in two organisations, I want to have two logos, one on bottom left corner and the other one on the top right corner. How can I do that? ...
7
votes
1answer
186 views

ifoddpage not working

I'm testing ifoddpage but it seems to say that every page is even: \documentclass{article} \usepackage{lipsum} \usepackage{ifoddpage} \newcommand\printpage{% Page is \thepage. It is \ifoddpage ...
6
votes
1answer
528 views

Arbitrary text parsing from a separate file

I'm still very new to the world of TeX, so please bear with me if this question is unclear or has been asked before. I'm starting to figure my way through TeX and the millions of plugins and ...
5
votes
3answers
274 views

How to trim the end of line character for each line read from an external file?

How to trim the end of line character for each line read from an external \jobname.list file below? Note that the real scenario does not use filecontents package to generate the list. I use a batch ...
1
vote
0answers
37 views

Mixing multiple programming languages with different styles in same document [duplicate]

Possible Duplicate: Defining lstset parameters for multiple languages What's the easiest way to include code, using listings, from more programming languages? \lstset{ % language=Python, ...

15 30 50 per page