Help understanding Groff environements ( .ev )


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Help understanding Groff environements ( .ev )
# 1  
Old 10-29-2018
Help understanding Groff environements ( .ev )

Hi guys!

I'm not exactly a newbie Unix-like user (Slackware and Red Had in the 90's, distro hoping in the 2000's, ArchLinux for the best part of the 2010's, and currently OpenBSD). But I certainly have a newbie question about Groff. Smilie

I had decided to learn groff, and never did. And then Luke Smith on YouTube unfortunately made a video about it, reminding me that decision.
I've been a good boy and RTFM for the last 48h or so. But something still eludes me.
I can't choose text alignment, I mean I can't get .ad , ... to work properly.
I think it has something to do with the environment (groff environment, not the shell). Because no matter what argument I give to .ad :
If I use 0 ( .ev 0 ) everything is always left aligned.
If I use anything else ( .ev {1, 2, foo ,duh!, ...} ) everything is justified.

The manual does not seem to explain what are the default envs, and how to set them. Or I missed it...
Can someone help?

GNU groff version 1.22.3 on OpenBSD 6.4 x86_64
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Understanding $PATH better

Dear all, I have a script which triggers a C program in it after initialising parameters. Below is the sample #! /bin/sh . /my_data/environment HOME=/home/execs/testing/ cd $HOME compare $1 $2 X exit $? (10 Replies)
Discussion started by: PikK45
10 Replies

2. Shell Programming and Scripting

Need your help in understanding this

Hi, I found this in a script and I would like to know how this works Code is here: # var1=PART1_PART2 # var2=${var1##*_} # echo $var2 PART2 I'm wondering how ##* makes the Shell to understand to pick up the last value from the given. (2 Replies)
Discussion started by: sathyaonnuix
2 Replies

3. UNIX for Dummies Questions & Answers

Understanding lseek

I tried to use lseek system call to determine the number of bytes in a file. To do so, I used open system call with O_APPEND flag to open a file. As lseek returns the current offset so I called lseek for opened file with offset as zero and whence as SEEK_CUR. So I guess it must return the number of... (3 Replies)
Discussion started by: Deepak Raj
3 Replies

4. UNIX for Dummies Questions & Answers

understanding {%/*}/

Hi Gurus: I am trying to understand the following line of code.I did enough of googling to understand but no luck.Please help me understand the follow chunk of code: X=$0 MOD=${X%/*}/env.ksh X is the current script from which I am trying to execute. Say if X=test.ksh $MOD is echoing :... (3 Replies)
Discussion started by: vemana
3 Replies

5. Shell Programming and Scripting

Need help for understanding of script

# sub: find block (in cols), return line-numbers (begin-end) or 0 if notfound sub findb{ my ($exp1,$col1,$exp2,$col2)= @_; # $exp = expression to find, $col - column to search in my $cnt=0; my ($val1,$val2); my ($beg,$end); for($cnt=1;$cnt<=65536;$cnt++){ $val1 =... (3 Replies)
Discussion started by: suvenduperl
3 Replies

6. Shell Programming and Scripting

need help understanding mv

I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks. echo "Enter Name of the first file:" read file1 #echo $file1 if ; then echo "Sorry, file does not exist." exit 1 ... (16 Replies)
Discussion started by: taiL
16 Replies

7. UNIX for Dummies Questions & Answers

Groff: How do you create bibliographies in APA?

I am using the following command to create the document: refer -p final_ref.cit group6_final.roff | groff -ms -f T > group6_final.ps As you may have surmised, this is indeed homework, however, the question is not related to the homework whatsoever. The paper is for a course in Library... (1 Reply)
Discussion started by: Bubnoff
1 Replies

8. UNIX for Dummies Questions & Answers

Help in understanding AIX

Dear ALL, Where can I get the following information? what will happen exactly when i hit CTRL+C, CTRL+Z, CTRL+X, CTRL+D etc when the AIX terminal hangs...? The reason why I am asking this question is when ever I type a command at the terminal (say "select * from tab" or any command) the... (1 Reply)
Discussion started by: tenderfoot
1 Replies

9. UNIX for Advanced & Expert Users

converting Opentype to ASCII (for groff)

I'm trying to convert different versions of helvetica neue from Opentype to ascii so that groff can use them in conjunction with VI (I believe everything is printed to postscript after). Ultimately i need to be able to use these specific helvetica fonts in VI, but in order to do this i must convert... (1 Reply)
Discussion started by: abby
1 Replies
Login or Register to Ask a Question
MMROFF(1)						      General Commands Manual							 MMROFF(1)

NAME
mmroff - reference preprocessor SYNOPSIS
mmroff [ -x ] groff_arguments DESCRIPTION
mmroff is a simple preprocessor for groff, it is used for expanding references in mm, see groff_mm(7). groff is executed twice, first with -z and -rRef=1 to collect all references and then to do the real processing when the reference file is up to date. -x Just create the reference file. This can be used to refresh the reference file, it isn't always needed to have accurate references and by using this option groff will only be run once. AUTHOR
Jorgen Hagg, Lund, Sweden <jh@axis.se>. FILES
/usr/share/groff/1.21/tmac/m.tmac /usr/share/groff/1.21/tmac/mm/*.cov /usr/share/groff/1.21/tmac/mm/*.MT /usr/share/groff/1.21/tmac/mm/locale SEE ALSO
groff_mm(7), groff_mmse(7), groff(1), troff(1), tbl(1), pic(1), eqn(1) Groff Version 1.21 31 December 2010 MMROFF(1)