Search found 14 matches
- Sun Feb 24, 2013 3:49 pm
- Forum: Graphics, Figures & Tables
- Topic: Vertical Text Alignment in circled Nodes
- Replies: 5
- Views: 8781
Re: Vertical Text Alignment in circled Nodes
I did not notice. Great feature.
- Sat Feb 23, 2013 8:30 pm
- Forum: Graphics, Figures & Tables
- Topic: Vertical Text Alignment in circled Nodes
- Replies: 5
- Views: 8781
Vertical Text Alignment in circled Nodes
Indeed here is a compilable latex file:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{tikz}
\usetikzlibrary{fit}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\node[ellipse, draw] at (0,0) {
\begin{tikzpicture}
\node at (0,0.2){$blablabla$};
\node at (0,-0.2 ...
\documentclass{article}
\usepackage[english]{babel}
\usepackage{tikz}
\usetikzlibrary{fit}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\node[ellipse, draw] at (0,0) {
\begin{tikzpicture}
\node at (0,0.2){$blablabla$};
\node at (0,-0.2 ...
- Sat Feb 23, 2013 7:38 pm
- Forum: Graphics, Figures & Tables
- Topic: Vertical Text Alignment in circled Nodes
- Replies: 5
- Views: 8781
Vertical Text Alignment in circled Nodes
Again I found the solution (sorry for posting). I give the answer it may help someone:
Code: Select all
\node (a) at (6,0.2){$b$};
\node (b) at (6,-0.2){$blablabla$};
\node[draw, circle, fit=(a) (b)] {};
- Sat Feb 23, 2013 7:11 pm
- Forum: Text Formatting
- Topic: Convert string to integer
- Replies: 3
- Views: 10429
Re: Convert string to integer
Thanks for the link. It seems great !
- Sat Feb 23, 2013 7:02 pm
- Forum: Graphics, Figures & Tables
- Topic: Vertical Text Alignment in circled Nodes
- Replies: 5
- Views: 8781
Vertical Text Alignment in circled Nodes
Hello,
It seems that I have a lot of questions these days.
I am drawing two ellipses and two circles with tikZ:
\begin{tikzpicture}
\node[ellipse, draw] at (0,0) {
\begin{tikzpicture}
\node at (0,0.2){$blablabla$};
\node at (0,-0.2){$b$};
\end{tikzpicture}
};
\node[ellipse, draw] at (3.5 ...
It seems that I have a lot of questions these days.
I am drawing two ellipses and two circles with tikZ:
\begin{tikzpicture}
\node[ellipse, draw] at (0,0) {
\begin{tikzpicture}
\node at (0,0.2){$blablabla$};
\node at (0,-0.2){$b$};
\end{tikzpicture}
};
\node[ellipse, draw] at (3.5 ...
- Sat Feb 23, 2013 4:44 pm
- Forum: Text Formatting
- Topic: Convert string to integer
- Replies: 3
- Views: 10429
Convert string to integer
I found a workaround:
\newcounter{result}
\newcommand{\myFunction}[4]{
\setcounter{result}{0}
\StrLen{#1}[\sOne]
\StrLen{#2}[\sTwo]
\ifthenelse{\sOne>\sTwo}{\addtocounter{result}{\sOne}}{\addtocounter{result}{\sTwo}}
\StrLen{#3}[\sThree]
\StrLen{#4}[\sFour]
\ifthenelse{\sThree>\sFour ...
\newcounter{result}
\newcommand{\myFunction}[4]{
\setcounter{result}{0}
\StrLen{#1}[\sOne]
\StrLen{#2}[\sTwo]
\ifthenelse{\sOne>\sTwo}{\addtocounter{result}{\sOne}}{\addtocounter{result}{\sTwo}}
\StrLen{#3}[\sThree]
\StrLen{#4}[\sFour]
\ifthenelse{\sThree>\sFour ...
- Sat Feb 23, 2013 12:08 pm
- Forum: Text Formatting
- Topic: Grouped List Items
- Replies: 4
- Views: 5653
Re: Grouped List Items
Works fine, thanks !
- Sat Feb 23, 2013 12:00 pm
- Forum: Text Formatting
- Topic: Convert string to integer
- Replies: 3
- Views: 10429
Convert string to integer
Hello,
I want to make a function which take 4 arguments (#1 to #4) and return the size of :
- the size of the longest string between #1 and #2
plus
- the size of the longest string between #3 and #4
For example if I do:
\myFunction{a}{bc}{def}{g}
it should return 5 (because max(length(a, bc ...
I want to make a function which take 4 arguments (#1 to #4) and return the size of :
- the size of the longest string between #1 and #2
plus
- the size of the longest string between #3 and #4
For example if I do:
\myFunction{a}{bc}{def}{g}
it should return 5 (because max(length(a, bc ...
- Fri Feb 22, 2013 10:34 pm
- Forum: Graphics, Figures & Tables
- Topic: Reference to a nested Node
- Replies: 2
- Views: 6286
Re: Reference to a nested Node
Excellent thank you !
- Fri Feb 22, 2013 9:10 pm
- Forum: Graphics, Figures & Tables
- Topic: Reference to a nested Node
- Replies: 2
- Views: 6286
Reference to a nested Node
Hello,
I have a reference to a nested node which is not working as well as expected. Here is an example:
\begin{tikzpicture}
\node[draw, ellipse] (e1){
\begin{tikzpicture}
\node (n1) {$a$};
\end{tikzpicture}
};
\node[draw, ellipse] (e2) at (2,0){
\begin{tikzpicture}
\node (n2) {$b ...
I have a reference to a nested node which is not working as well as expected. Here is an example:
\begin{tikzpicture}
\node[draw, ellipse] (e1){
\begin{tikzpicture}
\node (n1) {$a$};
\end{tikzpicture}
};
\node[draw, ellipse] (e2) at (2,0){
\begin{tikzpicture}
\node (n2) {$b ...