17
votes
5answers
2k views

Tikz triangle with point colours

How do I draw a triangle in tikz with "point colours" so that every point in the triangle is coloured according to the weighted (by distance) average colour of the corners.
1
vote
2answers
1k views

In Lyx turn greyed out text into comments

In Lyx I would like to convert greyed out text into comments. The Lyx environment is lyxgreyedout. I have considered switching to another IDE already and it is not an acceptable solution. The ...
8
votes
5answers
3k views

Set \strut height

I'm using quite a few \colorbox and \colorfbox in a document but they weren't sitting at the same heights (because some words contained g and this seemed to push the box down. The solution I found ...
4
votes
1answer
1k views

Referring to tikz matrix coordinates using pgf mathematics operations

I would like to use pgf's math operations to refer to matrix coodinates in tikz. This works for the second coordinate, but apparently miraculously: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
890 views

Multiple equation numbers for a tikz picture

I am attempting to draw two related exact sequences in the same tikz picture, for alignment purposes. I currently have wrapped the tikzpicture environment in an equation environment, so that both ...
6
votes
0answers
194 views

How to create package with custom symbols (i.e. glyphs) [duplicate]

Possible Duplicate: Create a symbol font from SVG symbols I want to create a package for myself, that prints custom glyphs (some glyphs for instance that I made up). How do I go with this? ...
13
votes
2answers
5k views

Create empty box sized according to imaginary content

In LaTeX, is it possible to create an empty box that has exactly the dimensions of some content given? Example: \emptybox{abc} would insert an empty box of the size as if "abc" was printed there.
19
votes
2answers
2k views

Looking for TikZ flourishes and vignettes

I'm a sucker for the fancy section markers (commonly called vignettes or ornaments). For an example, look at the beautiful symbol beneath the {TeX} logo on this site, or this flourish below ...
16
votes
2answers
36k views

How to link an equation in LaTeX

I am wondering how I can link an equation in LaTeX, I mean when I click on the link then I'll be directed to that specific equation.
5
votes
2answers
1k views

How can I nest coordinate calculations in TikZ?

Why does this not work? I'm not using LaTeX and TikZ very much; I don't see it. \begin{tikzpicture} \coordinate (Zero) at (0,0); \coordinate[label=below:cell a] (vertexA) at (0, 10); ...
4
votes
2answers
762 views

luaotfload can't find font “CMU Sans Serif Demi Condensed”

Luaotfload has problems finding a font that is installed in my texmf tree. The source: \input luaotfload.sty \font\myfont={CMU Sans Serif Demi Condensed} at 10pt \myfont foo \bye The font is in ...
4
votes
1answer
2k views

Newline in equations

The code looks something like: $$ If \ abs(dx) = abs(dy) \ then \\ step = abs(dx)\\ else \\ step = abs(dy)\\ $$ I want the '\\' to ...
7
votes
5answers
318 views

Typeset a series of characters with equal distances?

for typesetting tables with design of experiments, I have to typeset strings like "+ - + +", - - - +", etc. in a column of a table to represent the so called pattern of the experimental run (sometimes ...
14
votes
2answers
2k views

Change math font only in some parts of a document?

Within a larger document with lots of formulas, I use a self-defined "Example" environement for illustrational purposes from time to time. In order to better set it apart from the rest of the text, I ...
5
votes
0answers
1k views

Is there a CSS file to make my Webpage “look like” latex ouput [closed]

In a similar vein to this question, can I make my web page look like is was typeset in latex. I know it won't be possible to replicate the latex look exactly. Is there a CSS file which will control ...
14
votes
1answer
3k views

tikzexternalize only (or not) for flagged graphics

I have a couple of pictures in my work so I started to build them extern in order to increase build speed. But I don't want to externalize all of them, I want a few little pictures to be build ...
8
votes
5answers
931 views

Wrap text round brackets

I want to accomplish this effect with LaTeX: I have a slight idea of how to do that using \left{ and \right} on math mode but I’m not sure. If there’s a package that helps to do that, coding would ...
31
votes
3answers
27k views

moderncv themes

Are there any available themes for moderncv other than classic and casual? I googled it but no luck.
1
vote
1answer
152 views

Using thmbox's title with lyx

Hello I'm trying to create my own layout I'm using thmbox package for theorems, and I want to use the title feature. I'm using LyX as my editor, and I've created a layout file defining several ...
3
votes
1answer
1k views

Adding more items on tex article title section

This is what I have at the head of my tex document (article): \title{Some Article} \author{John Doe} \date{\today} \documentclass[pdftex,12pt,a4paper]{article} \usepackage{setspace} ...
2
votes
1answer
2k views

Heading at the bottom of the page

I'm typesetting a large document (phdthesis) with pdflatex and I'm using KOMAscriptand the scrreprtdocument class. I was very surprised as I saw a heading (\subsubsection) standing at the bottom of a ...
2
votes
1answer
939 views

how to make a shortcut at toolbar in lyx?

I'm sorry my english is bad. how to add a shorcut at toolbar in lyx?? so that If I klick the shorcut, I can connect to the TortoiseSVN, just shorcut(seemlessly) thanks.
6
votes
1answer
13k views

How to shift one equation only towards the left margin

I have an equation extending into the right margin and off the page. I have many equations. For this equation only, I would like to shift it to the left. MWE below. \documentclass[twoside]{book} ...
4
votes
1answer
5k views

Remove unnecessary blank page after creating an appendix

Declaring appendices, an unnecessary blank page is created immediately after. Leaving a 1-page break before the first appendix!? How can this blank page be removed. MWE below. ...
11
votes
1answer
16k views

tables side-by-side using minipage

I'm trying to get three tables side by side using minipage. In spite of my horrific efforts my tables keep stacking on top of each other instead of standing beside what drives me mad. Can anybody spot ...
10
votes
3answers
3k views

Isn't TeX similar to HTML+CSS?

As I said in the title, isn't TeX "similar" to static web pages? Can you accomplish the same things with both, or is TeX limited to words? Why would one prefer HTML and CSS over TeX, or vice versa?
6
votes
2answers
406 views

In the verbatim environment, how can I display an 'if' statement I declared as '\ifcondition'?

I have declared a couple of if commands of the form \newif\iffinal \newif\ifsolutions Now I want to write about it in the same document! So I want to write something like \iffinal (...) ...
5
votes
1answer
7k views

How do I get the margin note to appear on the left?

I'm trying to make a left-sided margin note. As per the LaTeX wiki, I tried using \reversemarginpar but that didn't solve anything--it didn't make a margin note at all. I also tried \marginpar[left ...
7
votes
2answers
960 views

Spaces behind \textgreater not working as expected

I have the following code: \textit{WMC \textgreater average} But the text looks like this: WMC >average It does not even change if I add even more spaces. So what am I doing wrong?
4
votes
2answers
813 views

How to avoid that listings are interrupted by floats?

And again I have another problem I just can't figure out. I defined a listing with some XML code: \begin{lstlisting}[captionpos=b, caption=XML detection strategy for Refused Parent Bequest, ...
6
votes
2answers
670 views

Bundle packages with a document

I'd like to have my LaTeX document be self-contained, that is, if I move to another computer I'd like all of my non-standard packages to work without first installing them. For simple enough packages ...
12
votes
1answer
1k views

Difference between two dates

Is there a macro that calculates the year and months from a given start date and the current date. So let's say I have 05/02/2010 (the start date), then it should do the following: Today - ...
4
votes
3answers
1k views

LaTeX beamer package and growing figures

I'm using beamer package in LaTeX to build my slides. I saw in some final examples in LaTeX (I mean, I saw the PDF format and not the tex format), that contains an image that is being build along ...
3
votes
3answers
3k views

Lyx change font

I don't like the way Lyx typesets my documents. Letters look jagged around the edges. When I click Document>Settings>Fonts the only options I have available are Default, Roman, Sans Serif and ...
1
vote
2answers
452 views

Defining environment in TeXworks

I have an environment defined in a file env.sty as well as the file task.tex which is based on that environment. How can I get TeXworks to read set the environment defined in a file, so that it is ...
36
votes
2answers
5k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
20
votes
4answers
15k views

How to show \listoffigures and \listoftables on one page and in the ToC?

Is it possible to put the list of figures and tables onto one page? I only have two tables in my thesis, so having it on an extra page looks quite bad. I've read about the tocloft package and tried ...
1
vote
1answer
640 views

TeX system for Windows server

I'm trying to find a TeX system for the following Windows version: Windows Server Datacenter Copyright 2007 Microsoft Corperation Service Pack 2 I tried with MiKTeX but seems it is ...
8
votes
2answers
1k views

Print page margins of a document

Sometimes when I'm reviewing my document and rearranging images and tables, It would be sometimes great to see the page margins. Is there any easy way to print the page margins when reviewing a ...
21
votes
1answer
5k views

pgfplots: prevent single plot from being listed in legend

In order to fill the area between two complex curves I use tables and the vertcat command (see Fill between two curves in pgfplots.). Now I don't want the plotted area to appear in my legend, just ...
6
votes
2answers
3k views

How can the \textmu symbol be used in math mode and resize correctly?

I wish to use an upright mu character in various places in my document, and so I've put the following in my preamble: % textcomp, for its upright mu \usepackage{textcomp} % some user macros ...
4
votes
2answers
745 views

Making \footnote work in leftbar environment

Sorry, it's me again. Gonzalo has hinted me to the very nice leftbar environment in the framed package, which I now use for definitions, theorems and similar environment. Now I've got a new problem: ...
9
votes
1answer
21k views

Remove/Reduce vertical space between paragraphs for acm_proc_article-sp

I need to use a certain document class (acm_proc_article-sp) that introduces vertical space between paragraphs. I want to remove or at least reduce that space, which I am unable to. Here is a minimal ...
4
votes
1answer
549 views

Wrapping relational operators

If an expression $A = B$ (or say, $A \leq B$) occurs in a sentence and there is only enough space in the current line to accommodate $A$, LaTeX will place the equals sign beyond the margin and cause ...
4
votes
1answer
4k views

Complex Table Layout

I'm trying to display a fairly complex table using Latex. Here is what I want it to look like (formatting, alignment, borders, columnspan, and rowspan). I would also like the columns to be fixed width ...
3
votes
1answer
1k views

Memoir class and textblock configuration for A4 paper

I'm using the memoir class to write my master thesis that should be printed on A4 paper. Altough I'm quite happy with the configuration I did for many aspects of the document, I'm still confused with ...
2
votes
2answers
1k views

Tight bounding box for EPS

This is a follow-up of the question EPS file with tight BB & Psfrag labels. I have this file named model.eps (see further below on how to get the file) and I am replacing the labels on the figure ...
8
votes
1answer
1k views

Title running off the page!

I haven't had this problem before so I'm not quite sure what's happening, but my title is running off to the right side of the page. This is my code: \documentclass{article} \usepackage{assymb} ...
6
votes
3answers
629 views

Is there a way for a command to have a scope within item?

I defined a command \newcommand{\done}{\color[RGB]{124, 124, 255}} Is there a way to use it as \item \done la-la instead of \item {\done la-la} It bothers me to put brackets all the time. ...
2
votes
1answer
814 views

Two color line in gnuplot

Is there any way to plot a line graph where each series is plotted with two alternating colors? For example, say I was plotting the population of bees over time and I wanted the line to alternate ...

15 30 50 per page