The vphantom command is less ugly than white text and works also better because no invisible characters will be selected in the pdf.
But I use the rput solution with baseline (capital B) alignment (\rput {0}(0,-2.5pt){text} instead of \makebox(0,0){text} to be precise), since this pstricks command ...
Search found 5 matches
- Fri Jan 28, 2011 11:26 pm
- Forum: Text Formatting
- Topic: horizontal central alignment in picture environment
- Replies: 7
- Views: 5717
- Fri Jan 28, 2011 11:17 pm
- Forum: General
- Topic: shear macros: rotatebox and scalebox are so primitive
- Replies: 1
- Views: 3233
shear macros: rotatebox and scalebox are so primitive
Here is an example.
\documentclass{article}
\usepackage{graphicx,pstricks}
%\hshearbox{vertical_prescale_times_shearfactor}{one_divide_by_shearfactor}{content}
% an initial vertical downscale is often necessary for a 3d projection
\newcommand{\hshearbox}[3]{\scalebox{0.866025}[#2]{\rotatebox{210 ...
\documentclass{article}
\usepackage{graphicx,pstricks}
%\hshearbox{vertical_prescale_times_shearfactor}{one_divide_by_shearfactor}{content}
% an initial vertical downscale is often necessary for a 3d projection
\newcommand{\hshearbox}[3]{\scalebox{0.866025}[#2]{\rotatebox{210 ...
- Wed Jan 26, 2011 9:27 pm
- Forum: Text Formatting
- Topic: horizontal central alignment in picture environment
- Replies: 7
- Views: 5717
Re: horizontal central alignment in picture environment
The capital letters are entirely above the line, while the lower parts of gpqy are below the line. This is the case in every text you read. I currently use a quick and dirty solution of top alignment and white |'s around the text to make the text higher when only letters acegmnopqrsuvwxyz are used ...
- Fri Jan 21, 2011 1:31 am
- Forum: Text Formatting
- Topic: horizontal central alignment in picture environment
- Replies: 7
- Views: 5717
horizontal central alignment in picture environment
Hello all,
I want to put text on some spot in a picture environment, with horizontal central alignment but no vertical alignment. With \put(10,10){\makebox(0,0){text}} I get full central alignment, but I want capital letters ABC... to be placed higher than the letters gpqy which have about the ...
I want to put text on some spot in a picture environment, with horizontal central alignment but no vertical alignment. With \put(10,10){\makebox(0,0){text}} I get full central alignment, but I want capital letters ABC... to be placed higher than the letters gpqy which have about the ...
- Fri Jan 21, 2011 12:20 am
- Forum: General
- Topic: shear macros: rotatebox and scalebox are so primitive
- Replies: 1
- Views: 3233
shear macros: rotatebox and scalebox are so primitive
rotatebox and scalebox are macros of the graphicx package. They are primitive in both senses, i.e. they are (1) limited and (2) generating.
Ok, that was the theoretical part. The practical part consists of two macros built on rotatebox and scalebox.
\usepackage{graphicx}
%\hshearbox{vertical ...
Ok, that was the theoretical part. The practical part consists of two macros built on rotatebox and scalebox.
\usepackage{graphicx}
%\hshearbox{vertical ...