The size tag has no wiki summary.
60
votes
6answers
7k views
Compile a LaTeX document into a PNG image that's as short as possible
I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always ...
54
votes
6answers
6k views
How to create small PDF files for the Internet
I feel that PDF documents when intended to be uploaded to the Internet should be of a minimal final size in bytes. Many strategies exist to create a small document:
Pay attention to the size of the ...
24
votes
2answers
12k views
How to change the size of nodes?
How is it possible to change the size of a node, for example:
\begin{tikzpicture}
\draw node[fill,circle]{} (0,0);%
\end{tikzpicture}
How to make the circle smaller or larger?
17
votes
3answers
1k views
Get the size that a figure is being rendered
Suppose I have a figure in my LaTeX document:
\begin{figure}
\includegraphics[scale=0.5]{some_graphic}
\end{figure}
My question is pretty simple: Is there a way to get the size that some_graphic ...
17
votes
1answer
2k views
What are the possible dimensions / sizes / units LaTeX understands?
I know there are different ways of expressing sizes or dimensions in LaTeX such as points (pt), inches (in) and ex.
As some commands, such as \hspace understand all of them, I would like to have a ...
15
votes
4answers
1k views
Bounding box is larger than expected when drawing a curved path
I have been working on logo for my department and I have the following code. The problem is that whenever I compile the diagram seems to be larger than the actual logo. I do not know what is the ...
13
votes
1answer
955 views
High precision \includegraphics for LaTeX
\includegraphics produces boxes whose witdth and height are about 0.5pt off:
\usepackage{graphicx}
...
\setbox0\hbox{\includegraphics[width=\textwidth,height=\textheight]{mypic}}
\showthe\textheight
...
12
votes
4answers
928 views
Creating stackoverflow like tags
I'm trying to create stackoverflow like tags. Currently I'm using an \fbox{text} to create the tags, which works, but not all boxes have the same height (it seems that letters like 'p' make a box take ...
12
votes
2answers
3k views
Any way to center text within a \parbox?
Probably I'm missing something, but I'm really struggling to find an answer to this simple question:
How to center text within a \parbox?
Side note: I don't want to switch to any other environment ...
12
votes
2answers
153 views
Smaller membership symbol
To mean that x is an element of X, we can write x \in X. However, in the standard packages, the membership symbol that results is too big; it draws too much attention to itself. This is especially ...
11
votes
3answers
24k views
Big Parenthesis in an Equation
I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis. Any idea how to make ...
11
votes
2answers
111 views
Manually controlled size of delimiters in macros
I am using the amsmath package and I'd like to control the size of my delimiters manually, i.e. using the
\bigl, \Bigl, ... , \Bigr, \bigr commands, instead of \left, \middle, \right.
Now I want to ...
10
votes
1answer
2k views
Tikz - move/reposition arrow decorations (arrowhead length/size)
I'm trying to build a 'dimension line' macro for Tikz:
\documentclass{article}
% note: with \documentclass{minimal}, this example fails with:
% ! Undefined control sequence.
% ...
9
votes
3answers
979 views
How to increase the size of first character in a chapter (Drop-Caps)
I would like to know how I can increase the size of the first alphabet of first paragraph of a chapter using (Xe/La/?)tex. Please look at the image shown below.
What is such an effect called? How ...
9
votes
1answer
1k views
Trim image by number of pixels
Is it possible to trim an image by a certain number of pixels rather than a length?
I have a set of images that I'm including, and in one figure, a trim of 135 on the bottom works nicely, but a ...
8
votes
3answers
6k views
Make equations large
I'm including some equations in my document, but want them to appear very large. I have them in display mode, as opposed to inline mode, but can't seem to find any way to make them larger.
I've tried ...
8
votes
2answers
170 views
How to type a tall / symbol?
Say I want
\documentclass{article}
\begin{document}
\[cl(V, q) =\left (\sum_{r=0}^{\infty} \bigotimes^r V\right)/\{v\otimes v = -q(v,v)\}\]
\end{document}
How to make the "/" symbol longer to ...
8
votes
2answers
432 views
Is there a “medium” \cap?
When displaying the intersection symbol in equations, e.g.,
$$Hom(A,B) \cap Hom(B,C)$$
I find that the "cap" is too small; its height is, in fact, subordinate to the surrounding content. On the ...
8
votes
1answer
563 views
Resizing a table by textheight
Say, I have a table which doesn't fit on one page. Say, I don't want to use any special table types or so but want to solve the problem by using the \resizebox-command and keep my ratio.
If by using ...
8
votes
4answers
4k views
Reduce size of \bullet character in lists
Example for a list using mdwlist:
\begin{itemize*}
\item First
\item Second
\end{itemize*}
The bullet symbol for the first level can be redefined with:
\renewcommand{\labelitemi}{$\bullet$}
It ...
7
votes
2answers
381 views
In exponents, parenthesis too small, \big too big
When something big (a fraction, a sum, an integral...) appears within a pair of parenthesis, one can typically use \left(...\right) to get delimiters large enough to surround the contents. The ...
7
votes
2answers
1k views
How do I make one minipage the same size as another?
I'm writing a LaTeX document into which I want to put two boxes, in a row next to each other, which will contain varying length content.
I want each box to be the same height, and that height needs ...
6
votes
3answers
97 views
How to set size of pdf page in pixels and put a background image
I need to create certificates in pdf. I have an image, where the text must be put to the appropriate place. I managed to set the correct pdf page size and all margins, except the top:
...
6
votes
3answers
9k views
How to make math symbols bigger?
Is there a way to make math symbols bigger?
Reason: I've used \sfrac{q}{m}, and those symbols appear far to small, so I would like to make them a bit bigger.
edit: I just thought that \sfrac{q}{m} ...
6
votes
1answer
233 views
Custom TikZ node with svg path not clipped
I would like to make a custom node shape with a small picture (on north east) using the svg directive of TikZ, because the picture comes from a svg path.
As you can see with this simple code, the ...
6
votes
1answer
435 views
Creating environments with different colours and sizes
At the top of my lecture notes I define the following environments:
%Student copy
\newenvironment{Notes}{\LARGE\color{white}}
%My copy (uncomment out "%" below)
...
5
votes
2answers
1k views
Accolade to take objects together in TikZ
Is there a way to draw an accolade ({-symbol) that groups things together in TikZ? I want the accolade to group let's say three rectangles. That means the top of the upper reactangle must be the top ...
5
votes
2answers
186 views
Automatic scaling of kiviat diagrams
\documentclass[twoside,a4paper,12pt]{article}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[upright]{fourier}
\usepackage{tkz-kiviat,numprint,fullpage}
\usetikzlibrary{arrows}
...
5
votes
1answer
4k views
Image from \includegraphics showing in wrong image size
When I use the following to embed an image:
\begin{figure}[htb]
\centering
\includegraphics{my_image}
\caption{blaaa}
\label{fig:blaaa}
\end{figure}
whereas my_image is a JPG file, the ...
5
votes
2answers
92 views
Typesetting digraph with weighted edges, varying vertex size, multiple lines in vertex
I would like to draw the graph displayed in the following picture with TikZ and also do some modifications:
Firstly I want to carry the labels of the nodes to the inside as a second line.
For ...
5
votes
1answer
138 views
Multiple different meta for marker color and marker size
How do I set the color of a marker with one meta column in a table AND its size with another meta column?
So in this minimal working example, how can I set the marker size with 'w1' and the color ...
5
votes
1answer
313 views
How to increase the size around text in \psframebox
when using \psframebox the size between text and corners of the box is really small.
Is there a way to increase that?
My minimal example:
\documentclass[dvips]{article}
\usepackage{pst-all}
...
5
votes
1answer
1k views
How to control the vertical height of boxes
I would like to create boxes where I can control the height of the boxes. Right now I have used the command.
\colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}}
This gives me a box that ...
5
votes
1answer
85 views
Adjusting box height to the document bottom
I made a command that prints a gray rectangle in my document. I can use this command typing:
\notes{100}, where 100 is the vertical size of the box.
\newcommand{\notes}[1]{
...
5
votes
2answers
231 views
Creating a table that uses all available space
Is there a way to use tabular or some other method to create a table that expands to use the entire available space? So if I created a table with 4 rows, each row would use 25% of the space. Thanks!
...
5
votes
2answers
307 views
Height of sparkline
I'm trying to place a sparkline in a ctable using the sparklines package.
\documentclass[11pt]{article}
\usepackage{ctable}
\usepackage{sparklines}
\begin{document}
\ctable[
caption = ...
4
votes
2answers
128 views
TikZ: different x, y scales but so that shapes maintain their aspects
I have some old pstricks code which I'm re-doing with TikZ. In my current picture, the x and y scales are different:
\begin{tikzpicture}[xscale=1.8,yscale=4]
However, this has the problem that ...
4
votes
2answers
136 views
How to make the function identifier ( f(x) ) more dominant?
When a function has a rather complex set of parameters, the function identifier (usually simply f), gets dwarfed by the parentheses and the parameters inside of them:
As you can see in the red ...
4
votes
1answer
60 views
How to make a symbol adjust its size globally and locally
In the following code I have created a bullseye symbol. What I want to do is to allow its size to change dynamically both globally (document class option say 10pt, 11pt or 12pt) or locally by using ...
4
votes
1answer
1k views
How to make a textbox with this TikZ code ?
I made this with TikZ :
\usetikzlibrary{calc}
\def\banlen{3}
\xdefinecolor{mycolor}{RGB}{62,96,111} % Neutral Blue
\def\bancolor{mycolor}
\begin{tikzpicture}
\draw (0.25,0.25) rectangle (5,-2); %
...
4
votes
2answers
291 views
Matrix doesn't shrink when put in fraction.
This is my minimal example, the problem is the different size of the two x. I would expect the matrix to be shrunken too, but it isn't. Why is this and how is it corrected?
...
4
votes
1answer
1k views
Big table with rotated column labels using booktabs
I'm trying to get a big table to fit into my document using the booktabs package, but it is too wide. An example of a couple of rows of the table is given below. I'm using the ...
4
votes
2answers
573 views
Large table is placed on extra page
I am using LaTeX, and I have a large table in my report, the height of table is a little more than half of the paper. all the text after the table will go to the next page, and in this page just the ...
4
votes
1answer
207 views
Size of TikZ ellipse node
When I set the minimum size of an ellipse in a tikzpicture environment, it expands into a circle if the inner content does not grow as large as the ellipse shape itself.
Is there any way around it?
...
4
votes
1answer
191 views
How to declare variable sizes in tikz to let LaTeX decide how to fill the page
LaTeX sometimes does some tricks to fill lines to the end, to fill pages up to the bottom and to prevent pages only containing a single line of text. When I create some tikzpictures there are ...
3
votes
2answers
583 views
Remove “white parts” of tikz picture
I have a tikz picture, which consists of a visible part on the left side and a white part on the right side (for some constructive reasons). Now I would like to redefine the size so that the new ...
3
votes
2answers
783 views
How to set equal size of cells in tabular environment when \multicolumn extend the size of above cell?
The code example is shown as follows:
\documentclass{article}
\usepackage{latexsym}
\usepackage{bm}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\begin{document}
\begin{center}
...
3
votes
1answer
75 views
Change part of table column size
I would like to know if there is a way, that I can resize part of a column, while keeping the rest the same size. Such that I would get this:
Column
___|
___|
___|
_______|
_______|
_______|
I ...
3
votes
2answers
468 views
Turnstile package
I am fairly new to TeX, so I may be missing something simple, but I can't seem to adjust the height of the turnstile objects produced by the turnstile package. In particular, if the symbol appears as ...
3
votes
2answers
2k views
Fit flowchart into one page
I am trying to create a flowchart using TikZ and i have few difficulties...
My flowchart doesn't fit into one A4 page
The text Yes \ No is on the line and not on the side of it.
The size of decision ...
