Re: Hollow Box Similar to \rule?

2006-01-07 Thread Kevin Pfeiffer
Rich Shepard writes:
Thanks for your efforts. If you look at the .tex file I attached
 to my post you'll see that there are 286 little boxes (3mm wide x
 2.54mm high). That's a lot of \picture{} environments to design and
 place. :-)

Why would you need 286 picture environments? Have you actually played 
around with one of them?

Have you looked at \multiput?
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-269.html

Sounds like it might be useful.

I noticed while browsing yesterday that there are also several graphics 
packages for LaTeX. Perhaps you would be better off with one of these. 
Far be it from me to make this suggestion (since for some reason I've 
not yet done it myself), but perhaps since you are working on something 
specialized you should purchase one or two LaTeX reference books?

 For example a negative \vspace{} closes up lines
 rather than raising the \framebox a bit above the baseline. That's
 not helpful.

Perhaps it's the wrong tool for the job. It seems to me that the 
\picture environment provides global positioning and the \put and 
\multiput commands offers the same thing locally. I've attached my 
sample file again, showing \multipart and also that one is not 
restricted to the boundaries of the picture environment.

But as this all has little or nothing to do with LyX, perhaps we will 
soon be \booted out of here? :-)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\added_space_bottom bigskip \align center 

\series bold 
\size larger 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
framebox{The Framebox}
\end_inset 


\layout Standard

First create a picture environment.
 The default 
\backslash 
unitlength is 1pt, so the picture environment below was created to be 72
 x 72 points in size.
 The 0,0 origin places it on the baseline following the last character typeset.
 Then with the 
\backslash 
frame command a border is drawn around it.
 
\layout Standard

Inside the picture environment a 
\backslash 
put command adds a 
\backslash 
framebox slightly smaller than the picture environment.
 Inside this is another 
\backslash 
framebox, 16 x 16 points in size.
 The (28,28) origin (i.e.
 72/2 - 16/2) of this second 
\backslash 
put command, translates (shifts) the our smaller box from the lower-left
 corner of the picture environment to its center.
 
\layout Standard

The 
\backslash 
multiput command lets one create patterns by setting the starting x,y coordinate
s, delta x,y (the offset for each multiple), and the number of repeats;
 and \SpecialChar \ldots{}

\layout Standard

finally an x marks the spot: 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
frame{
\layout Standard
  
\backslash 
begin{picture}(72,72)(0,0)
\layout Standard
  
\backslash 
linethickness{0.1pt}
\layout Standard
  
\backslash 
put(2,2){
\backslash 
framebox(68,68)[]{}}
\layout Standard
  
\backslash 
multiput(6,61)(7,0){9}{
\backslash 
framebox(4,4)[]{}}
\layout Standard
  
\backslash 
multiput(6,7)(7,0){9}{
\backslash 
framebox(4,4)[]{}}
\layout Standard
  
\backslash 
linethickness{2pt}
\layout Standard
  
\backslash 
put(28,28){
\backslash 
framebox(16,16)[]{x}}
\layout Standard
  
\backslash 
linethickness{0.5pt}
\layout Standard
  
\backslash 
put(-22,-99){
\backslash 
framebox(60,10)[c]{down here!}}
\layout Standard
  
\backslash 
end{picture}%
\layout Standard
  }
\end_inset 

 That's all.
 The 
\backslash 
linethickness command can also be used.
 Zoom in on the dvi output (or print the page) to see the difference.
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setlength{
\backslash 
unitlength}{1em}%
\end_inset 

 
\layout Standard

A further option would be to change the 
\backslash 
unitlength to something other than points.
 Here the 
\backslash 
unitlength has been changed to 1 em 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{picture}(1,1)(0,0.2)
\layout Standard

\backslash 
put(0,0){
\backslash 
framebox(1,1)[c]{M}}
\layout Standard

\backslash 
end{picture}
\end_inset 

 using the 
\backslash 
setlength command.
\layout Standard

And the placement of elements is not restricted to the boundaries of the
 picture environment.
 This box \SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~

Re: Hollow Box Similar to \rule?

2006-01-07 Thread Kevin Pfeiffer
(Apologies in advance)

Rich,

I didn't mean to sound so harsh and critical as the prev. message seems 
to have come out.

Best of luck with your scanner card!

-K


-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Kevin Pfeiffer wrote:


Have you looked at \multiput?
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-269.html


Kevin,

  I will take a look at it.


... but perhaps since you are working on something specialized you should
purchase one or two LaTeX reference books?


  Er, did you not see my references to the multido pdf, The LaTex Companion,
2nd Ed., Guide to LaTeX 4th Ed., and The LaTeX Graphics Companion that I
wrote I had used before asking for help?


Perhaps it's the wrong tool for the job. It seems to me that the picture
environment provides global positioning and the \put and multiput commands
offers the same thing locally. I've attached my sample file again, showing
multipart and also that one is not restricted to the boundaries of the
picture environment.


  I've used \put with PSTricks. That may be the way to go.


But as this all has little or nothing to do with LyX, perhaps we will soon
be \booted out of here? :-)


  Yes, I hesitated before posting here. There are a lot of LaTeX experts who
hang around here, too. Last evening I posted in comp.text.tex on Usenet, too.

  This is not the usual type of document with which we all deal. It seemed to
me, however, that the fine control offered by LaTeX made it the appropriate
tool to use.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:


  I've used \put with PSTricks. That may be the way to go.


Rich,
for PSTricks it is \rput or one of the other label macros,
but not \put

Herbert



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


for PSTricks it is \rput or one of the other label macros, but not \put


Herbert,

  Thanks for the reminder. It's been a while. But, ... I think that's what I
need for this OMR form. Plain ol' LaTeX took me 98% of the way, but fine
tuning positioning is where I get lost.

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:

On Sat, 7 Jan 2006, Herbert Voss wrote:


for PSTricks it is \rput or one of the other label macros, but not \put


  Thanks for the reminder. It's been a while. But, ... I think that's 
what I

need for this OMR form. Plain ol' LaTeX took me 98% of the way, but fine
tuning positioning is where I get lost.


Rich,
you need only the right tool :-)

attched an example which creates the table dynymical.
You can modify this macro for your purpose. With a tabular
you'll get always correct horizontal and vertical alignment.

Herbert


omr-form.tex
Description: TeX document



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


you need only the right tool :-)


  Well, Herbert, that's what I've been trying to learn on my own.


attched an example which creates the table dynymical. You can modify this
macro for your purpose. With a tabular you'll get always correct horizontal
and vertical alignment.


  I wondered about using a table. It may well be faster and easier than
re-doing the document with PSTricks. And I just started re-reading the
PSTricks manual, too.

  Now that I've briefly looked at your modifications I see how much more
efficiently the file is written than what I had originally. In addition to
Appendix D of Guide to LaTeX, what do you recommend I read to learn more
about doing complex documents with LaTeX? Or, is it more a matter of doing it
more frequently?

Again, many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:


  I wondered about using a table. It may well be faster and easier than
re-doing the document with PSTricks. And I just started re-reading the
PSTricks manual, too.


Rich,
this depends strongly on your problem. But you should always
first trying to realize it with a tabular. It is a powerful
environment, but needs some time to understand.


  Now that I've briefly looked at your modifications I see how much more
efficiently the file is written than what I had originally. In addition to
Appendix D of Guide to LaTeX, what do you recommend I read to learn more
about doing complex documents with LaTeX? Or, is it more a matter of 
doing it

more frequently?


there are some general facts:

- for the layout use _always_ package geometry, which is also
  the default by LyX
- every layout, which depends on a grid, should be possible
  with a tabular or array

learning by doing is the best way and doing it frequently
makes it easier.

Herbert



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


this depends strongly on your problem. But you should always first trying
to realize it with a tabular. It is a powerful environment, but needs some
time to understand.


Herbert,

  Yes, it does. Time to re-read the books I have so I can become more
comfortable with the tabular environment.


- for the layout use _always_ package geometry, which is also the default
 by LyX


  This is good to know.


- every layout, which depends on a grid, should be possible with a tabular
 or array


  OK.


learning by doing is the best way and doing it frequently makes it easier.


  True. I have too many tools I need to use in my business and I don't use
each one every day.

Many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Kevin Pfeiffer
Rich Shepard writes:
Thanks for your efforts. If you look at the .tex file I attached
 to my post you'll see that there are 286 little boxes (3mm wide x
 2.54mm high). That's a lot of \picture{} environments to design and
 place. :-)

Why would you need 286 picture environments? Have you actually played 
around with one of them?

Have you looked at \multiput?
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-269.html

Sounds like it might be useful.

I noticed while browsing yesterday that there are also several graphics 
packages for LaTeX. Perhaps you would be better off with one of these. 
Far be it from me to make this suggestion (since for some reason I've 
not yet done it myself), but perhaps since you are working on something 
specialized you should purchase one or two LaTeX reference books?

 For example a negative \vspace{} closes up lines
 rather than raising the \framebox a bit above the baseline. That's
 not helpful.

Perhaps it's the wrong tool for the job. It seems to me that the 
\picture environment provides global positioning and the \put and 
\multiput commands offers the same thing locally. I've attached my 
sample file again, showing \multipart and also that one is not 
restricted to the boundaries of the picture environment.

But as this all has little or nothing to do with LyX, perhaps we will 
soon be \booted out of here? :-)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\added_space_bottom bigskip \align center 

\series bold 
\size larger 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
framebox{The Framebox}
\end_inset 


\layout Standard

First create a picture environment.
 The default 
\backslash 
unitlength is 1pt, so the picture environment below was created to be 72
 x 72 points in size.
 The 0,0 origin places it on the baseline following the last character typeset.
 Then with the 
\backslash 
frame command a border is drawn around it.
 
\layout Standard

Inside the picture environment a 
\backslash 
put command adds a 
\backslash 
framebox slightly smaller than the picture environment.
 Inside this is another 
\backslash 
framebox, 16 x 16 points in size.
 The (28,28) origin (i.e.
 72/2 - 16/2) of this second 
\backslash 
put command, translates (shifts) the our smaller box from the lower-left
 corner of the picture environment to its center.
 
\layout Standard

The 
\backslash 
multiput command lets one create patterns by setting the starting x,y coordinate
s, delta x,y (the offset for each multiple), and the number of repeats;
 and \SpecialChar \ldots{}

\layout Standard

finally an x marks the spot: 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
frame{
\layout Standard
  
\backslash 
begin{picture}(72,72)(0,0)
\layout Standard
  
\backslash 
linethickness{0.1pt}
\layout Standard
  
\backslash 
put(2,2){
\backslash 
framebox(68,68)[]{}}
\layout Standard
  
\backslash 
multiput(6,61)(7,0){9}{
\backslash 
framebox(4,4)[]{}}
\layout Standard
  
\backslash 
multiput(6,7)(7,0){9}{
\backslash 
framebox(4,4)[]{}}
\layout Standard
  
\backslash 
linethickness{2pt}
\layout Standard
  
\backslash 
put(28,28){
\backslash 
framebox(16,16)[]{x}}
\layout Standard
  
\backslash 
linethickness{0.5pt}
\layout Standard
  
\backslash 
put(-22,-99){
\backslash 
framebox(60,10)[c]{down here!}}
\layout Standard
  
\backslash 
end{picture}%
\layout Standard
  }
\end_inset 

 That's all.
 The 
\backslash 
linethickness command can also be used.
 Zoom in on the dvi output (or print the page) to see the difference.
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setlength{
\backslash 
unitlength}{1em}%
\end_inset 

 
\layout Standard

A further option would be to change the 
\backslash 
unitlength to something other than points.
 Here the 
\backslash 
unitlength has been changed to 1 em 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{picture}(1,1)(0,0.2)
\layout Standard

\backslash 
put(0,0){
\backslash 
framebox(1,1)[c]{M}}
\layout Standard

\backslash 
end{picture}
\end_inset 

 using the 
\backslash 
setlength command.
\layout Standard

And the placement of elements is not restricted to the boundaries of the
 picture environment.
 This box \SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~

Re: Hollow Box Similar to \rule?

2006-01-07 Thread Kevin Pfeiffer
(Apologies in advance)

Rich,

I didn't mean to sound so harsh and critical as the prev. message seems 
to have come out.

Best of luck with your scanner card!

-K


-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Kevin Pfeiffer wrote:


Have you looked at \multiput?
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-269.html


Kevin,

  I will take a look at it.


... but perhaps since you are working on something specialized you should
purchase one or two LaTeX reference books?


  Er, did you not see my references to the multido pdf, The LaTex Companion,
2nd Ed., Guide to LaTeX 4th Ed., and The LaTeX Graphics Companion that I
wrote I had used before asking for help?


Perhaps it's the wrong tool for the job. It seems to me that the picture
environment provides global positioning and the \put and multiput commands
offers the same thing locally. I've attached my sample file again, showing
multipart and also that one is not restricted to the boundaries of the
picture environment.


  I've used \put with PSTricks. That may be the way to go.


But as this all has little or nothing to do with LyX, perhaps we will soon
be \booted out of here? :-)


  Yes, I hesitated before posting here. There are a lot of LaTeX experts who
hang around here, too. Last evening I posted in comp.text.tex on Usenet, too.

  This is not the usual type of document with which we all deal. It seemed to
me, however, that the fine control offered by LaTeX made it the appropriate
tool to use.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:


  I've used \put with PSTricks. That may be the way to go.


Rich,
for PSTricks it is \rput or one of the other label macros,
but not \put

Herbert



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


for PSTricks it is \rput or one of the other label macros, but not \put


Herbert,

  Thanks for the reminder. It's been a while. But, ... I think that's what I
need for this OMR form. Plain ol' LaTeX took me 98% of the way, but fine
tuning positioning is where I get lost.

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:

On Sat, 7 Jan 2006, Herbert Voss wrote:


for PSTricks it is \rput or one of the other label macros, but not \put


  Thanks for the reminder. It's been a while. But, ... I think that's 
what I

need for this OMR form. Plain ol' LaTeX took me 98% of the way, but fine
tuning positioning is where I get lost.


Rich,
you need only the right tool :-)

attched an example which creates the table dynymical.
You can modify this macro for your purpose. With a tabular
you'll get always correct horizontal and vertical alignment.

Herbert


omr-form.tex
Description: TeX document



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


you need only the right tool :-)


  Well, Herbert, that's what I've been trying to learn on my own.


attched an example which creates the table dynymical. You can modify this
macro for your purpose. With a tabular you'll get always correct horizontal
and vertical alignment.


  I wondered about using a table. It may well be faster and easier than
re-doing the document with PSTricks. And I just started re-reading the
PSTricks manual, too.

  Now that I've briefly looked at your modifications I see how much more
efficiently the file is written than what I had originally. In addition to
Appendix D of Guide to LaTeX, what do you recommend I read to learn more
about doing complex documents with LaTeX? Or, is it more a matter of doing it
more frequently?

Again, many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:


  I wondered about using a table. It may well be faster and easier than
re-doing the document with PSTricks. And I just started re-reading the
PSTricks manual, too.


Rich,
this depends strongly on your problem. But you should always
first trying to realize it with a tabular. It is a powerful
environment, but needs some time to understand.


  Now that I've briefly looked at your modifications I see how much more
efficiently the file is written than what I had originally. In addition to
Appendix D of Guide to LaTeX, what do you recommend I read to learn more
about doing complex documents with LaTeX? Or, is it more a matter of 
doing it

more frequently?


there are some general facts:

- for the layout use _always_ package geometry, which is also
  the default by LyX
- every layout, which depends on a grid, should be possible
  with a tabular or array

learning by doing is the best way and doing it frequently
makes it easier.

Herbert



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


this depends strongly on your problem. But you should always first trying
to realize it with a tabular. It is a powerful environment, but needs some
time to understand.


Herbert,

  Yes, it does. Time to re-read the books I have so I can become more
comfortable with the tabular environment.


- for the layout use _always_ package geometry, which is also the default
 by LyX


  This is good to know.


- every layout, which depends on a grid, should be possible with a tabular
 or array


  OK.


learning by doing is the best way and doing it frequently makes it easier.


  True. I have too many tools I need to use in my business and I don't use
each one every day.

Many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Kevin Pfeiffer
Rich Shepard writes:
>Thanks for your efforts. If you look at the .tex file I attached
> to my post you'll see that there are 286 little boxes (3mm wide x
> 2.54mm high). That's a lot of \picture{} environments to design and
> place. :-)

Why would you need 286 picture environments? Have you actually played 
around with one of them?

Have you looked at \multiput?
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-269.html

Sounds like it might be useful.

I noticed while browsing yesterday that there are also several graphics 
packages for LaTeX. Perhaps you would be better off with one of these. 
Far be it from me to make this suggestion (since for some reason I've 
not yet done it myself), but perhaps since you are working on something 
specialized you should purchase one or two LaTeX reference books?

> For example a negative \vspace{} closes up lines
> rather than raising the \framebox a bit above the baseline. That's
> not helpful.

Perhaps it's the wrong tool for the job. It seems to me that the 
\picture environment provides global positioning and the \put and 
\multiput commands offers the same thing locally. I've attached my 
sample file again, showing \multipart and also that one is not 
restricted to the boundaries of the picture environment.

But as this all has little or nothing to do with LyX, perhaps we will 
soon be \booted out of here? :-)

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\added_space_bottom bigskip \align center 

\series bold 
\size larger 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
framebox{The Framebox}
\end_inset 


\layout Standard

First create a picture environment.
 The default 
\backslash 
unitlength is 1pt, so the picture environment below was created to be 72
 x 72 points in size.
 The 0,0 origin places it on the baseline following the last character typeset.
 Then with the 
\backslash 
frame command a border is drawn around it.
 
\layout Standard

Inside the picture environment a 
\backslash 
put command adds a 
\backslash 
framebox slightly smaller than the picture environment.
 Inside this is another 
\backslash 
framebox, 16 x 16 points in size.
 The (28,28) origin (i.e.
 72/2 - 16/2) of this second 
\backslash 
put command, translates (shifts) the our smaller box from the lower-left
 corner of the picture environment to its center.
 
\layout Standard

The 
\backslash 
multiput command lets one create patterns by setting the starting x,y coordinate
s, delta x,y (the offset for each multiple), and the number of repeats;
 and \SpecialChar \ldots{}

\layout Standard

finally an x marks the spot: 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
frame{
\layout Standard
  
\backslash 
begin{picture}(72,72)(0,0)
\layout Standard
  
\backslash 
linethickness{0.1pt}
\layout Standard
  
\backslash 
put(2,2){
\backslash 
framebox(68,68)[]{}}
\layout Standard
  
\backslash 
multiput(6,61)(7,0){9}{
\backslash 
framebox(4,4)[]{}}
\layout Standard
  
\backslash 
multiput(6,7)(7,0){9}{
\backslash 
framebox(4,4)[]{}}
\layout Standard
  
\backslash 
linethickness{2pt}
\layout Standard
  
\backslash 
put(28,28){
\backslash 
framebox(16,16)[]{x}}
\layout Standard
  
\backslash 
linethickness{0.5pt}
\layout Standard
  
\backslash 
put(-22,-99){
\backslash 
framebox(60,10)[c]{down here!}}
\layout Standard
  
\backslash 
end{picture}%
\layout Standard
  }
\end_inset 

 That's all.
 The 
\backslash 
linethickness command can also be used.
 Zoom in on the dvi output (or print the page) to see the difference.
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setlength{
\backslash 
unitlength}{1em}%
\end_inset 

 
\layout Standard

A further option would be to change the 
\backslash 
unitlength to something other than points.
 Here the 
\backslash 
unitlength has been changed to 1 em 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{picture}(1,1)(0,0.2)
\layout Standard

\backslash 
put(0,0){
\backslash 
framebox(1,1)[c]{M}}
\layout Standard

\backslash 
end{picture}
\end_inset 

 using the 
\backslash 
setlength command.
\layout Standard

And the placement of elements is not restricted to the boundaries of the
 picture environment.
 This box \SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~

Re: Hollow Box Similar to \rule?

2006-01-07 Thread Kevin Pfeiffer
(Apologies in advance)

Rich,

I didn't mean to sound so harsh and critical as the prev. message seems 
to have come out.

Best of luck with your scanner card!

-K


-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Kevin Pfeiffer wrote:


Have you looked at \multiput?
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-269.html


Kevin,

  I will take a look at it.


... but perhaps since you are working on something specialized you should
purchase one or two LaTeX reference books?


  Er, did you not see my references to the multido pdf, The LaTex Companion,
2nd Ed., Guide to LaTeX 4th Ed., and The LaTeX Graphics Companion that I
wrote I had used before asking for help?


Perhaps it's the wrong tool for the job. It seems to me that the picture
environment provides global positioning and the \put and multiput commands
offers the same thing locally. I've attached my sample file again, showing
multipart and also that one is not restricted to the boundaries of the
picture environment.


  I've used \put with PSTricks. That may be the way to go.


But as this all has little or nothing to do with LyX, perhaps we will soon
be \booted out of here? :-)


  Yes, I hesitated before posting here. There are a lot of LaTeX experts who
hang around here, too. Last evening I posted in comp.text.tex on Usenet, too.

  This is not the usual type of document with which we all deal. It seemed to
me, however, that the fine control offered by LaTeX made it the appropriate
tool to use.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:


  I've used \put with PSTricks. That may be the way to go.


Rich,
for PSTricks it is \rput or one of the other label macros,
but not \put

Herbert



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


for PSTricks it is \rput or one of the other label macros, but not \put


Herbert,

  Thanks for the reminder. It's been a while. But, ... I think that's what I
need for this OMR form. Plain ol' LaTeX took me 98% of the way, but fine
tuning positioning is where I get lost.

Rich

--
Richard B. Shepard, Ph.D.   |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:

On Sat, 7 Jan 2006, Herbert Voss wrote:


for PSTricks it is \rput or one of the other label macros, but not \put


  Thanks for the reminder. It's been a while. But, ... I think that's 
what I

need for this OMR form. Plain ol' LaTeX took me 98% of the way, but fine
tuning positioning is where I get lost.


Rich,
you need only the right tool :-)

attched an example which creates the table dynymical.
You can modify this macro for your purpose. With a tabular
you'll get always correct horizontal and vertical alignment.

Herbert


omr-form.tex
Description: TeX document



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


you need only the right tool :-)


  Well, Herbert, that's what I've been trying to learn on my own.


attched an example which creates the table dynymical. You can modify this
macro for your purpose. With a tabular you'll get always correct horizontal
and vertical alignment.


  I wondered about using a table. It may well be faster and easier than
re-doing the document with PSTricks. And I just started re-reading the
PSTricks manual, too.

  Now that I've briefly looked at your modifications I see how much more
efficiently the file is written than what I had originally. In addition to
Appendix D of "Guide to LaTeX", what do you recommend I read to learn more
about doing complex documents with LaTeX? Or, is it more a matter of doing it
more frequently?

Again, many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-07 Thread Herbert Voss

Rich Shepard wrote:


  I wondered about using a table. It may well be faster and easier than
re-doing the document with PSTricks. And I just started re-reading the
PSTricks manual, too.


Rich,
this depends strongly on your problem. But you should always
first trying to realize it with a tabular. It is a powerful
environment, but needs some time to understand.


  Now that I've briefly looked at your modifications I see how much more
efficiently the file is written than what I had originally. In addition to
Appendix D of "Guide to LaTeX", what do you recommend I read to learn more
about doing complex documents with LaTeX? Or, is it more a matter of 
doing it

more frequently?


there are some general facts:

- for the layout use _always_ package geometry, which is also
  the default by LyX
- every layout, which depends on a grid, should be possible
  with a tabular or array

learning by doing is the best way and doing it frequently
makes it easier.

Herbert



Re: Hollow Box Similar to \rule?

2006-01-07 Thread Rich Shepard

On Sat, 7 Jan 2006, Herbert Voss wrote:


this depends strongly on your problem. But you should always first trying
to realize it with a tabular. It is a powerful environment, but needs some
time to understand.


Herbert,

  Yes, it does. Time to re-read the books I have so I can become more
comfortable with the tabular environment.


- for the layout use _always_ package geometry, which is also the default
 by LyX


  This is good to know.


- every layout, which depends on a grid, should be possible with a tabular
 or array


  OK.


learning by doing is the best way and doing it frequently makes it easier.


  True. I have too many tools I need to use in my business and I don't use
each one every day.

Many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Hi,

Rich Shepard writes:
On my OMR form the marking boxes need to be a specific size (3.0mm
 wide x 2.54mm high). My research in Guide to LaTeX taught me how to
 use a \rule box as a strobe mark, but that's filled by default and I
 cannot find an equivalent command to create an empty box of specified
 size.

Can someone please point me in the right direction?

\begin{picture}(72,72)(0,0)
\put(36,36){\framebox(72,72)][0]{}}
\end{picture}

This might get you started (not sure if it's the best solution, though 
as I've never used such a thing). 

Look at \framebox and the picture env. for more info.

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Rich Shepard

On Fri, 6 Jan 2006, Kevin Pfeiffer wrote:

Kevin,


\begin{picture}(72,72)(0,0)
\put(36,36){\framebox(72,72)][0]{}}
\end{picture}

This might get you started (not sure if it's the best solution, though
as I've never used such a thing).

Look at \framebox and the picture env. for more info.


  I know that \framebox puts a frame around the text, while \makebox doesn't.
I have \makebox in the file, perhaps replaceing those with \framebox would
work. I'll try.

  Haven't investigated the picture environment. May have to do that.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Rich Shepard writes:
 On Fri, 6 Jan 2006, Kevin Pfeiffer wrote:

 Kevin,

  \begin{picture}(72,72)(0,0)
  \put(36,36){\framebox(72,72)][0]{}}
  \end{picture}
 
  This might get you started (not sure if it's the best solution,
  though as I've never used such a thing).
 
  Look at \framebox and the picture env. for more info.

I know that \framebox puts a frame around the text, while \makebox
 doesn't. I have \makebox in the file, perhaps replaceing those with
 \framebox would work. I'll try.

Haven't investigated the picture environment. May have to do that.

You need it if you want to specify a height with \framebox (or so the 
docs I read).

But others here may have more practical solutions.

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Kevin Pfeiffer writes:
   Look at \framebox and the picture env. for more info.

The attached LyX file is my meagre attempt to offer a better example.

-Kevin



-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\added_space_bottom bigskip \align center 

\series bold 
\size larger 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
framebox{The Framebox}
\end_inset 


\layout Standard

First create a picture environment.
 The default 
\backslash 
unitlength is 1pt, so the picture environment below was created to be 72
 x 72 points in size.
 The 0,0 origin places it on the baseline following the last character typeset.
 Then with the 
\backslash 
frame command a border is drawn around it.
 Inside the picture environment a 
\backslash 
put command adds a 
\backslash 
framebox slightly smaller than the picture environment.
 Inside this is another 
\backslash 
framebox, 16 x 16 points in size.
 The (28,28) origin (i.e.
 72/2 - 16/2) of this second 
\backslash 
put command, translates (shifts) the origin of our smaller box from the
 lower-left corner of the picture environment to its center; and \SpecialChar \ldots{}

\layout Standard

finally an x marks the spot: 
\begin_inset ERT
status Open

\layout Standard

\backslash 
frame{
\layout Standard
  
\backslash 
begin{picture}(72,72)(0,0)
\layout Standard
  
\backslash 
linethickness{0.1pt}
\layout Standard
  
\backslash 
put(2,2){
\backslash 
framebox(68,68)[]{}}
\layout Standard
  
\backslash 
linethickness{2pt}
\layout Standard
  
\backslash 
put(28,28){
\backslash 
framebox(16,16)[]{x}}
\layout Standard
  
\backslash 
end{picture}%
\layout Standard
  }
\end_inset 

 That's all.
 The 
\backslash 
linethickness command can also be used.
 Zoom in on the dvi output (or print the page) to see the difference.
\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
setlength{
\backslash 
unitlength}{1em}%
\end_inset 

 
\layout Standard

A further option would be to change the 
\backslash 
unitlength to something other than points.
 Here the 
\backslash 
unitlength has been changed to 1 em 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{picture}(1,1)(0,0.2)
\layout Standard

\backslash 
put(0,0){
\backslash 
framebox(1,1)[c]{M}}
\layout Standard

\backslash 
end{picture}
\end_inset 

 using the 
\backslash 
setlength command.
\the_end


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Rich Shepard

On Sat, 7 Jan 2006, Kevin Pfeiffer wrote:


Kevin Pfeiffer writes:

Look at \framebox and the picture env. for more info.


The attached LyX file is my meagre attempt to offer a better example.


Kevin,

  Thanks for your efforts. If you look at the .tex file I attached to my post
you'll see that there are 286 little boxes (3mm wide x 2.54mm high). That's a
lot of \picture{} environments to design and place. :-)

  By manipulating \hspace{} and \framebox{} in the nested \multido{} I'm
getting closer to what's needed. The spacing is still too wide, and the last
row is not spaced the same as the previous rows. I've no idea why right now.

  Unfortunately, when Optical Mark Recognition scanners are designed they
have very tight tolerances for size and placement of the marks they'll be
able to process. I know that LaTeX has the ability to put the boxes on the
page in the right places, the trick is for me to learn how to do it. For
example a negative \vspace{} closes up lines rather than raising the
\framebox a bit above the baseline. That's not helpful.

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Hi,

Rich Shepard writes:
On my OMR form the marking boxes need to be a specific size (3.0mm
 wide x 2.54mm high). My research in Guide to LaTeX taught me how to
 use a \rule box as a strobe mark, but that's filled by default and I
 cannot find an equivalent command to create an empty box of specified
 size.

Can someone please point me in the right direction?

\begin{picture}(72,72)(0,0)
\put(36,36){\framebox(72,72)][0]{}}
\end{picture}

This might get you started (not sure if it's the best solution, though 
as I've never used such a thing). 

Look at \framebox and the picture env. for more info.

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Rich Shepard

On Fri, 6 Jan 2006, Kevin Pfeiffer wrote:

Kevin,


\begin{picture}(72,72)(0,0)
\put(36,36){\framebox(72,72)][0]{}}
\end{picture}

This might get you started (not sure if it's the best solution, though
as I've never used such a thing).

Look at \framebox and the picture env. for more info.


  I know that \framebox puts a frame around the text, while \makebox doesn't.
I have \makebox in the file, perhaps replaceing those with \framebox would
work. I'll try.

  Haven't investigated the picture environment. May have to do that.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Rich Shepard writes:
 On Fri, 6 Jan 2006, Kevin Pfeiffer wrote:

 Kevin,

  \begin{picture}(72,72)(0,0)
  \put(36,36){\framebox(72,72)][0]{}}
  \end{picture}
 
  This might get you started (not sure if it's the best solution,
  though as I've never used such a thing).
 
  Look at \framebox and the picture env. for more info.

I know that \framebox puts a frame around the text, while \makebox
 doesn't. I have \makebox in the file, perhaps replaceing those with
 \framebox would work. I'll try.

Haven't investigated the picture environment. May have to do that.

You need it if you want to specify a height with \framebox (or so the 
docs I read).

But others here may have more practical solutions.

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Kevin Pfeiffer writes:
   Look at \framebox and the picture env. for more info.

The attached LyX file is my meagre attempt to offer a better example.

-Kevin



-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\added_space_bottom bigskip \align center 

\series bold 
\size larger 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
framebox{The Framebox}
\end_inset 


\layout Standard

First create a picture environment.
 The default 
\backslash 
unitlength is 1pt, so the picture environment below was created to be 72
 x 72 points in size.
 The 0,0 origin places it on the baseline following the last character typeset.
 Then with the 
\backslash 
frame command a border is drawn around it.
 Inside the picture environment a 
\backslash 
put command adds a 
\backslash 
framebox slightly smaller than the picture environment.
 Inside this is another 
\backslash 
framebox, 16 x 16 points in size.
 The (28,28) origin (i.e.
 72/2 - 16/2) of this second 
\backslash 
put command, translates (shifts) the origin of our smaller box from the
 lower-left corner of the picture environment to its center; and \SpecialChar \ldots{}

\layout Standard

finally an x marks the spot: 
\begin_inset ERT
status Open

\layout Standard

\backslash 
frame{
\layout Standard
  
\backslash 
begin{picture}(72,72)(0,0)
\layout Standard
  
\backslash 
linethickness{0.1pt}
\layout Standard
  
\backslash 
put(2,2){
\backslash 
framebox(68,68)[]{}}
\layout Standard
  
\backslash 
linethickness{2pt}
\layout Standard
  
\backslash 
put(28,28){
\backslash 
framebox(16,16)[]{x}}
\layout Standard
  
\backslash 
end{picture}%
\layout Standard
  }
\end_inset 

 That's all.
 The 
\backslash 
linethickness command can also be used.
 Zoom in on the dvi output (or print the page) to see the difference.
\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
setlength{
\backslash 
unitlength}{1em}%
\end_inset 

 
\layout Standard

A further option would be to change the 
\backslash 
unitlength to something other than points.
 Here the 
\backslash 
unitlength has been changed to 1 em 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{picture}(1,1)(0,0.2)
\layout Standard

\backslash 
put(0,0){
\backslash 
framebox(1,1)[c]{M}}
\layout Standard

\backslash 
end{picture}
\end_inset 

 using the 
\backslash 
setlength command.
\the_end


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Rich Shepard

On Sat, 7 Jan 2006, Kevin Pfeiffer wrote:


Kevin Pfeiffer writes:

Look at \framebox and the picture env. for more info.


The attached LyX file is my meagre attempt to offer a better example.


Kevin,

  Thanks for your efforts. If you look at the .tex file I attached to my post
you'll see that there are 286 little boxes (3mm wide x 2.54mm high). That's a
lot of \picture{} environments to design and place. :-)

  By manipulating \hspace{} and \framebox{} in the nested \multido{} I'm
getting closer to what's needed. The spacing is still too wide, and the last
row is not spaced the same as the previous rows. I've no idea why right now.

  Unfortunately, when Optical Mark Recognition scanners are designed they
have very tight tolerances for size and placement of the marks they'll be
able to process. I know that LaTeX has the ability to put the boxes on the
page in the right places, the trick is for me to learn how to do it. For
example a negative \vspace{} closes up lines rather than raising the
\framebox a bit above the baseline. That's not helpful.

Rich

--
Richard B. Shepard, Ph.D.   |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Hi,

Rich Shepard writes:
>On my OMR form the marking boxes need to be a specific size (3.0mm
> wide x 2.54mm high). My research in Guide to LaTeX taught me how to
> use a \rule box as a strobe mark, but that's filled by default and I
> cannot find an equivalent command to create an empty box of specified
> size.

>Can someone please point me in the right direction?

\begin{picture}(72,72)(0,0)
\put(36,36){\framebox(72,72)][0]{}}
\end{picture}

This might get you started (not sure if it's the best solution, though 
as I've never used such a thing). 

Look at "\framebox" and the picture env. for more info.

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Rich Shepard

On Fri, 6 Jan 2006, Kevin Pfeiffer wrote:

Kevin,


\begin{picture}(72,72)(0,0)
\put(36,36){\framebox(72,72)][0]{}}
\end{picture}

This might get you started (not sure if it's the best solution, though
as I've never used such a thing).

Look at "\framebox" and the picture env. for more info.


  I know that \framebox puts a frame around the text, while \makebox doesn't.
I have \makebox in the file, perhaps replaceing those with \framebox would
work. I'll try.

  Haven't investigated the picture environment. May have to do that.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Rich Shepard writes:
> On Fri, 6 Jan 2006, Kevin Pfeiffer wrote:
>
> Kevin,
>
> > \begin{picture}(72,72)(0,0)
> > \put(36,36){\framebox(72,72)][0]{}}
> > \end{picture}
> >
> > This might get you started (not sure if it's the best solution,
> > though as I've never used such a thing).
> >
> > Look at "\framebox" and the picture env. for more info.
>
>I know that \framebox puts a frame around the text, while \makebox
> doesn't. I have \makebox in the file, perhaps replaceing those with
> \framebox would work. I'll try.
>
>Haven't investigated the picture environment. May have to do that.

You need it if you want to specify a height with \framebox (or so the 
docs I read).

But others here may have more practical solutions.

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Kevin Pfeiffer
Kevin Pfeiffer writes:
> > > Look at "\framebox" and the picture env. for more info.

The attached LyX file is my meagre attempt to offer a better example.

-Kevin



-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\added_space_bottom bigskip \align center 

\series bold 
\size larger 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
framebox{The Framebox}
\end_inset 


\layout Standard

First create a picture environment.
 The default 
\backslash 
unitlength is 1pt, so the picture environment below was created to be 72
 x 72 points in size.
 The 0,0 origin places it on the baseline following the last character typeset.
 Then with the 
\backslash 
frame command a border is drawn around it.
 Inside the picture environment a 
\backslash 
put command adds a 
\backslash 
framebox slightly smaller than the picture environment.
 Inside this is another 
\backslash 
framebox, 16 x 16 points in size.
 The (28,28) origin (i.e.
 72/2 - 16/2) of this second 
\backslash 
put command, translates (shifts) the origin of our smaller box from the
 lower-left corner of the picture environment to its center; and \SpecialChar \ldots{}

\layout Standard

finally an x marks the spot: 
\begin_inset ERT
status Open

\layout Standard

\backslash 
frame{
\layout Standard
  
\backslash 
begin{picture}(72,72)(0,0)
\layout Standard
  
\backslash 
linethickness{0.1pt}
\layout Standard
  
\backslash 
put(2,2){
\backslash 
framebox(68,68)[]{}}
\layout Standard
  
\backslash 
linethickness{2pt}
\layout Standard
  
\backslash 
put(28,28){
\backslash 
framebox(16,16)[]{x}}
\layout Standard
  
\backslash 
end{picture}%
\layout Standard
  }
\end_inset 

 That's all.
 The 
\backslash 
linethickness command can also be used.
 Zoom in on the dvi output (or print the page) to see the difference.
\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
setlength{
\backslash 
unitlength}{1em}%
\end_inset 

 
\layout Standard

A further option would be to change the 
\backslash 
unitlength to something other than points.
 Here the 
\backslash 
unitlength has been changed to 1 em 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{picture}(1,1)(0,0.2)
\layout Standard

\backslash 
put(0,0){
\backslash 
framebox(1,1)[c]{M}}
\layout Standard

\backslash 
end{picture}
\end_inset 

 using the 
\backslash 
setlength command.
\the_end


Re: Hollow Box Similar to \rule?

2006-01-06 Thread Rich Shepard

On Sat, 7 Jan 2006, Kevin Pfeiffer wrote:


Kevin Pfeiffer writes:

Look at "\framebox" and the picture env. for more info.


The attached LyX file is my meagre attempt to offer a better example.


Kevin,

  Thanks for your efforts. If you look at the .tex file I attached to my post
you'll see that there are 286 little boxes (3mm wide x 2.54mm high). That's a
lot of \picture{} environments to design and place. :-)

  By manipulating \hspace{} and \framebox{} in the nested \multido{} I'm
getting closer to what's needed. The spacing is still too wide, and the last
row is not spaced the same as the previous rows. I've no idea why right now.

  Unfortunately, when Optical Mark Recognition scanners are designed they
have very tight tolerances for size and placement of the marks they'll be
able to process. I know that LaTeX has the ability to put the boxes on the
page in the right places, the trick is for me to learn how to do it. For
example a negative \vspace{} closes up lines rather than raising the
\framebox a bit above the baseline. That's not helpful.

Rich

--
Richard B. Shepard, Ph.D.   |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863