\\ et node

View: New views
3 Messages — Rating Filter:   Alert me  

\\ et node

by Alain Matthes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

\\ does not work in a node but

with

\begin{tikzpicture}[every text node part/.style={%
  text centered, text width=2cm}]
   \node[rectangle split, rectangle split parts=1] {a \\ b};
\end{tikzpicture}

If I remove  text width=2cm \\ does not work again
Why ?

Best Regards

Alain Matthes

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

Re: \\ et node

by Dagnat Fabien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
Because, when text width is set the node content is put in a minipage  
where \\ works whereas normal node ignore them... Morality to build  
several lines nodes: (1) use text width or (2) use tabular or minipage  
structure within the node.

Fabien
Le 11 sept. 09 à 21:50, Alain Matthes a écrit :

> Hi
>
> \\ does not work in a node but
>
> with
>
> \begin{tikzpicture}[every text node part/.style={%
>  text centered, text width=2cm}]
>   \node[rectangle split, rectangle split parts=1] {a \\ b};
> \end{tikzpicture}
>
> If I remove  text width=2cm \\ does not work again
> Why ?
>
> Best Regards
>
> Alain Matthes
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> pgf-users mailing list
> pgf-users@...
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>

---------
Fabien Dagnat -- Maître de conférences
  Mel : fabien.dagnat@...
  Web : perso.telecom-bretagne.eu/fabiendagnat
  Tel : (0|33) 2 29 00 14 09 Fax : (0|33) 2 29 00 12 82
  Adr : TELECOM Bretagne
            Département Informatique
            Technopôle Brest-Iroise - CS 83818 - 29238 Brest Cedex 3









------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

Re: \\ et node

by Alain Matthes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Le 13 sept. 2009 à 21:27, Dagnat Fabien a écrit :

> Hi,
> Because, when text width is set the node content is put in a  
> minipage where \\ works whereas normal node ignore them... Morality  
> to build several lines nodes: (1) use text width or (2) use tabular  
> or minipage structure within the node.

Thanks

You are right and I don't read enough the manual
  (16.4.3 Text Parameters: Alignment and Width for Multi-Line Text)

  but I'm not sure if it's a minipage

I read this in the pgfmanual (cvs version) :

"something akin to a {minipage} of this width, only portable
across formats"



  it's possible to use \\ without "text width" but with "align"

2. You use \\ inside your node to mark the end of lines and then
  request TikZ to arrange these lines in some manner. This will only
  be done, however, if the align option has been given.

\tikz[align=left] \node[draw] {This is a\\demonstration.};

Sorry for the noise

Best Regards

Alain
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users