i have to write a paper where the chair claims a font size of 12pt AND a line-spacing of 15pt (which seems not to be \onehalfspacing).
Can anyone tell me how to define the spacing using the value 15pt?
Best regards and thanks!
Philipp
You can set the line spacing exactly by altering the \baselineskip value.
\setlength{\baselineskip}{15pt}
Note that you have to use this command inside the document environment in order for it to have an effect.
Related
I've a weird problem that faces me. I've a UILabel contains text of multiple lines and I'm using bullet in the first line "•".
But my problem is that the second line is not aligned with first character after the bullet.
I measured it and found that width of the bullet is a little bit bigger tan width of normal space.
Is there any trick for that?
the issue is concerning font attributes. Get into the difference of monospaced fonts and proportional fonts, then you will know why there's a difference between space and bullet in your font
https://en.wikipedia.org/wiki/Monospaced_font
easy solution and maybe really an option for you is to use a monospaced font.
Okay, I found a powerful answer by using NSParagraphStyle.
https://wingoodharry.wordpress.com/2016/04/10/bullet-point-list-ios-swift/
I'm using Latex to write my resume, however the default margins for the resume doc type are too wide. The best way to correct this is using the anysize package then setting the margin size, however doing so causes the "=.5=.75" to display before my title in the pdf. Here is the header code
% LaTeX resume using res.cls
\documentclass[margin]{res}
% \usepackage[margin=0.75in,bottom=.5in,top=.5in]{geometry}
\usepackage[none]{hyphenat}%%%%
\usepackage{anysize}
\setlength{\textwidth}{5.8in} % set width of text portion
\begin{document}
\marginsize{.5}{.5}{.75}{.75}
% Center the name over the entire width of resume:
\centerline{\large\bf John Doe}
You need to specify the lengths using some unit of measure. For example:
\marginsize{.5in}{.5in}{.75in}{.75in}
However, as mentioned in the anysize README
This package is obsolete. Use the package typearea to define your
margins typographically correct. Use the package geometry or vmargin
for everything else.
My suggestions would be to stick to geometry package for setting your document layout. Also, not to use resume for setting a resumé. There's moderncv as an alternative, or you could do just as well in the default article class.
Is there a property that will apply the proper character spacing to have all the text on each line in an NSAttributedString butt up against the bounds like in a book, (including the final line which I know isn't done in books)? I know kerning can be adjusted, but that won't dynamically adjust on a per line basis. Any help would be appreciated. Also NSTextAlignmentJustified and NSTextAlignmentNatural get close, but won't apply the effect to the last line of text.
The only option is to use NSTextAlignmentJustified. Last line is never justified, because NSTextAlignmentJustified refers to Left Justification mode, as it is the standard case.
For more information you can take a look at Typographic Alignment on wikipedia : http://en.wikipedia.org/wiki/Typographic_alignment
I need to show a body of text similar to the one shown below and limited to the red non-rectangular area. Rob's answer to this question pretty much answers my question as well, but I also need to truncate at tail of the paragraph when the text is too long.
Extra question: is it also possible to set minimum font size similar to UILabel?
Try using NSString::sizeWithFont:constrainedToSize method which is documented here. You can specify the fontsize and maximum size for the text.
You can also calculate the minimum font size using NSString::sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: method.
I'm creating graphs in pgf/tikz. When I use these in my document they are scaled, several are in minipage/subfig like environments. When this happens the font sizes are scaled with the graphics making them very small or unreadable. I've been through the manual but have so far been unsuccessful in my attempts to control this.
Is there a way to set the font size directly? What options are there?
One aswer given below shows how to how to use the \tikzstyle font option to specify the font size within the tikzpicture environment.
Right now I am using:
\beginppgfgraphicnamed{graph}
\input{graph.tex}
\endpgfgraphicnamed
The tikzpicture environment is used in the input file. Are there anyways to specify font size in the setup I'm using? Is this perhaps the issue? The graph.tex file is generated automatically via another program.
In addition to setting font size for individual graphics it would be ideal to have a parameter to globally set font size for all tikz graphics? I guess the issue is the scaling in minipage or subfig.
Many thanks,
Jay
\begin{tikzpicture}
\tikzstyle{every node}=[font=\small]
\end{tikzpicture}
will give you font size control on every node.
I found the better control would be using scalefnt package:
\usepackage{scalefnt}
...
{\scalefont{0.5}
\begin{tikzpicture}
...
\end{tikzpicture}
}
I believe Mica's way deserves the rank of answer, since is not visible enough as a comment:
\begin{tikzpicture}[font=\small]
\begin{tikzpicture}
\tikzstyle{every node}=[font=\fontsize{30}{30}\selectfont]
\end{tikzpicture}
You can also use:
\usepackage{anyfontsize}
The huge advantage of the anyfontsize package over scalefnt is that one does not need to enclose the entire {tikzpicture} within a \scalefont environment.
Just adding \usepackage{anyfontsize} to the preamble is all that is required for the font scaling magic to happen.