By trail and error, a unit square can be converted to a circle by using rounded corners=10*sqrt(2). From there is was a simple case of reading about pgfmath and implementing ;)
Working example is below, only \nsize and \nround need to be changed in the pre-amble \documentclass{article ...
Search found 192 matches
- Mon Sep 24, 2012 11:16 pm
- Forum: Graphics, Figures & Tables
- Topic: tikZ | Font Scaling in new Command
- Replies: 3
- Views: 6708
- Wed Sep 19, 2012 10:45 pm
- Forum: Graphics, Figures & Tables
- Topic: tikZ | Font Scaling in new Command
- Replies: 3
- Views: 6708
tikZ | Font Scaling in new Command
Thanks Stefan,
Using the standard font sizes solved the scaling issue.
%Setup command to draw box and text
\newcommand{\nucleus}[5]{
\filldraw[draw=black,thick,fill=#1,rounded corners=\rc] (#2,#3) rectangle +(1,1)
+(0.5,0.76) node[anchor=mid] {#4}
+(0.5,0.25) node[anchor=mid] {\LARGE #5};
}
I ...
Using the standard font sizes solved the scaling issue.
%Setup command to draw box and text
\newcommand{\nucleus}[5]{
\filldraw[draw=black,thick,fill=#1,rounded corners=\rc] (#2,#3) rectangle +(1,1)
+(0.5,0.76) node[anchor=mid] {#4}
+(0.5,0.25) node[anchor=mid] {\LARGE #5};
}
I ...
- Mon Sep 17, 2012 10:44 pm
- Forum: Graphics, Figures & Tables
- Topic: tikZ | Font Scaling in new Command
- Replies: 3
- Views: 6708
tikZ | Font Scaling in new Command
Hello,
I've created a new command that uses tikZ to draw a box at of a certain colour at x,y and add centered text of non-standard (bigger than \Huge ) size. I made the following MWE using the random scale=5 but when I change it the fonts and rounded corners are 'wrong'.
I cannot seem to get round ...
I've created a new command that uses tikZ to draw a box at of a certain colour at x,y and add centered text of non-standard (bigger than \Huge ) size. I made the following MWE using the random scale=5 but when I change it the fonts and rounded corners are 'wrong'.
I cannot seem to get round ...
- Thu Feb 17, 2011 8:12 pm
- Forum: TeX Live and MacTeX
- Topic: A bunch of newbie questions
- Replies: 10
- Views: 12669
A bunch of newbie questions
Here come the questions:
1. Does DVIPNG get installed automatically with TeXLive?
1.1. If so, does anyone know what is the default folder?
1.2. If not, how can I install it?
Have you installed TeXLive from source (ie did you get it from http://www.tug.org/texlive/)?
I did and on my system ...
- Tue Feb 08, 2011 12:28 pm
- Forum: Graphics, Figures & Tables
- Topic: EPS figure withe strange output format in latex!!!
- Replies: 4
- Views: 3346
Re: EPS figure withe strange output format in latex!!!
That text is raw postscript (or eps) code, so it looks like latex may not be interpreting the graphics properly. Can you post an MWE to show how you include the file.
Can you view the eps 'normally' outside of latex?
Can you view the eps 'normally' outside of latex?
- Mon Feb 07, 2011 1:39 am
- Forum: Graphics, Figures & Tables
- Topic: different text in figure (inkscape)
- Replies: 5
- Views: 8831
different text in figure (inkscape)
Can you post a very simple example .pdf_tex file with lines and text, that might make it easier to help.
Without knowing the format you could try wrapping the \input{} in a "small" environment. \begin{figure}
\caption{text}
\begin{small}
\input{file.pdf_tex}
\end{small}
\end{figure}
What system ...
Without knowing the format you could try wrapping the \input{} in a "small" environment. \begin{figure}
\caption{text}
\begin{small}
\input{file.pdf_tex}
\end{small}
\end{figure}
What system ...
- Thu Dec 09, 2010 5:37 pm
- Forum: Math & Science
- Topic: too much wide bmatrix
- Replies: 3
- Views: 3960
Re: too much wide bmatrix
No problem, happy to help.
Can you now edit the initial post title as solved (use the green tick/check icon)
Can you now edit the initial post title as solved (use the green tick/check icon)
- Thu Dec 09, 2010 2:24 pm
- Forum: Math & Science
- Topic: too much wide bmatrix
- Replies: 3
- Views: 3960
too much wide bmatrix
Not sure how to do it with a bmatrix, but if you use an array surrounded by square brackets then you can specify the column separation
\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage[showframe]{geometry}
\begin{document}
\[
J =
\left[
\begin{array}{c*{10}{@{\,}c}}
\dfrac ...
\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage[showframe]{geometry}
\begin{document}
\[
J =
\left[
\begin{array}{c*{10}{@{\,}c}}
\dfrac ...
- Mon Dec 06, 2010 2:34 pm
- Forum: Graphics, Figures & Tables
- Topic: List of figures is not breaking lines
- Replies: 3
- Views: 4293
Re: List of figures is not breaking lines
No problem, happy to help.
Can you now edit the initial post title as solved (use the green tick/check icon)
Can you now edit the initial post title as solved (use the green tick/check icon)
- Mon Dec 06, 2010 11:44 am
- Forum: Graphics, Figures & Tables
- Topic: List of figures is not breaking lines
- Replies: 3
- Views: 4293
List of figures is not breaking lines
Are you using the hyperref package? If you are, add the 'breaklinks' option to get the caption wrapped.
Code: Select all
\usepackage[breaklinks]{hyperref}