Makefile: -M ~ (troffrc in home dir) + new macros
This commit is contained in:
		
							parent
							
								
									d77c79b18d
								
							
						
					
					
						commit
						2825ac9a1a
					
				
					 2 changed files with 102 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -53,7 +53,7 @@ REFER = refer $(REFER_OPTS)
 | 
			
		|||
# -U     => unsafe (because of PDF inclusion)
 | 
			
		||||
# -Tpdf  => output device is PDF
 | 
			
		||||
# -mspdf => include PDF (so, images converted in PDF) in the document
 | 
			
		||||
GROFF_OPTS ?= -ms -t -Tpdf -U -mspdf -mpdfmark
 | 
			
		||||
GROFF_OPTS ?= -ms -t -Tpdf -U -mspdf -mpdfmark -M ~/
 | 
			
		||||
GROFF = groff $(GROFF_OPTS)
 | 
			
		||||
 | 
			
		||||
$(SRC).pdf:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										105
									
								
								macros.ms
									
										
									
									
									
								
							
							
						
						
									
										105
									
								
								macros.ms
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
.\" .RP = report document
 | 
			
		||||
.nr PO 0.5i   \" page offset default 1i
 | 
			
		||||
.nr LL 7.5i   \" line length default 6i
 | 
			
		||||
.nr FM 0.5i   \" page foot margin default 1i
 | 
			
		||||
.nr FM 0.8i   \" page foot margin default 1i
 | 
			
		||||
.nr DI 0
 | 
			
		||||
.nr FF 3   \" footnotes' type: numbered, with point, indented
 | 
			
		||||
.
 | 
			
		||||
| 
						 | 
				
			
			@ -35,9 +35,12 @@ accumulate
 | 
			
		|||
.vs 11p
 | 
			
		||||
..
 | 
			
		||||
.
 | 
			
		||||
.\" BULLET and ENUM => do not add space when no parameter are provided
 | 
			
		||||
.de BULLET         \" Bullet points
 | 
			
		||||
.IP \(bu 2
 | 
			
		||||
\\$*
 | 
			
		||||
.ie '\\$1'' \
 | 
			
		||||
.
 | 
			
		||||
.el         \\$*
 | 
			
		||||
..
 | 
			
		||||
.de ENDBULLET
 | 
			
		||||
.in -2   \" indent
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +49,9 @@ accumulate
 | 
			
		|||
.de ENUM           \" Numbered list
 | 
			
		||||
.nr LIST_NUMBER +1
 | 
			
		||||
.IP \\n[LIST_NUMBER] 2
 | 
			
		||||
\\$*
 | 
			
		||||
.ie '\\$1'' \
 | 
			
		||||
.
 | 
			
		||||
.el         \\$*
 | 
			
		||||
..
 | 
			
		||||
.de ENDENUM
 | 
			
		||||
.nr LIST_NUMBER 0
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +127,7 @@ accumulate
 | 
			
		|||
..
 | 
			
		||||
.
 | 
			
		||||
.
 | 
			
		||||
.de PRETTY_PERCENTAGE
 | 
			
		||||
.de FRAC
 | 
			
		||||
\v'-.7m\s[\\n(.s*6u/10u]+.7m'\\$1\v'-.7m\s0+.7m'\
 | 
			
		||||
\(f/\s[\\n(.s*6u/10u]\\$2\s0
 | 
			
		||||
..
 | 
			
		||||
| 
						 | 
				
			
			@ -209,3 +214,95 @@ To be defined or to finish.
 | 
			
		|||
.br
 | 
			
		||||
\(->\h'5p' \\$*
 | 
			
		||||
..
 | 
			
		||||
.ds CURRENT_DATE \\n(dy/\\n(mo/\\n[year]
 | 
			
		||||
.ds WEBSITE      https://t.karchnu.fr/doc
 | 
			
		||||
.ds EMAIL        karchnu@karchnu.fr
 | 
			
		||||
.de INFORMATIONS
 | 
			
		||||
Check out for newer versions:
 | 
			
		||||
.ft CW
 | 
			
		||||
.ps 8
 | 
			
		||||
\h'2p' \\$1
 | 
			
		||||
.ps
 | 
			
		||||
.ft
 | 
			
		||||
.br
 | 
			
		||||
And if you have questions:
 | 
			
		||||
.ft CW
 | 
			
		||||
\h'13p' \\$2
 | 
			
		||||
.ft
 | 
			
		||||
.\" .DE
 | 
			
		||||
 | 
			
		||||
.LP
 | 
			
		||||
Lastly compiled the
 | 
			
		||||
.SHINE \*[CURRENT_DATE]
 | 
			
		||||
(day/month/year, you know, like in any sane civilization).
 | 
			
		||||
..
 | 
			
		||||
.de INFORMATIONS_FR
 | 
			
		||||
.LP
 | 
			
		||||
Nouvelles versions :
 | 
			
		||||
.ft CW
 | 
			
		||||
.ps 8
 | 
			
		||||
\h'2p' \\$1
 | 
			
		||||
.ps
 | 
			
		||||
.ft
 | 
			
		||||
.br
 | 
			
		||||
Questions :
 | 
			
		||||
.ft CW
 | 
			
		||||
\h'36p' \\$2
 | 
			
		||||
.ft
 | 
			
		||||
.\" .DE
 | 
			
		||||
 | 
			
		||||
.LP
 | 
			
		||||
Compilé pour la dernière fois le
 | 
			
		||||
.SHINE \*[CURRENT_DATE]
 | 
			
		||||
..
 | 
			
		||||
.
 | 
			
		||||
.\" RENAMING REQUESTS
 | 
			
		||||
.
 | 
			
		||||
.de SECTION
 | 
			
		||||
.NH
 | 
			
		||||
\\$*
 | 
			
		||||
..
 | 
			
		||||
.de SUBSECTION
 | 
			
		||||
.NH 2
 | 
			
		||||
\\$*
 | 
			
		||||
..
 | 
			
		||||
.de SECTION_NO_NUMBER
 | 
			
		||||
.SH
 | 
			
		||||
\\$*
 | 
			
		||||
..
 | 
			
		||||
.de SUBSECTION_NO_NUMBER
 | 
			
		||||
.SH 2
 | 
			
		||||
\\$*
 | 
			
		||||
..
 | 
			
		||||
.de PARAGRAPH_INDENTED
 | 
			
		||||
.PP
 | 
			
		||||
..
 | 
			
		||||
.de PARAGRAPH_UNINDENTED
 | 
			
		||||
.LP
 | 
			
		||||
..
 | 
			
		||||
.de NO_ABSTRACT
 | 
			
		||||
.AB no
 | 
			
		||||
..
 | 
			
		||||
.de ABSTRACT1
 | 
			
		||||
.AB
 | 
			
		||||
..
 | 
			
		||||
.de ABSTRACT2
 | 
			
		||||
.AE
 | 
			
		||||
..
 | 
			
		||||
.de TITLE
 | 
			
		||||
.TL
 | 
			
		||||
\\$*
 | 
			
		||||
..
 | 
			
		||||
.de AUTHOR
 | 
			
		||||
.AU
 | 
			
		||||
.ie '\\$1'' \
 | 
			
		||||
.
 | 
			
		||||
.el \
 | 
			
		||||
\\$*
 | 
			
		||||
..
 | 
			
		||||
.de FOOTNOTE1
 | 
			
		||||
.FS
 | 
			
		||||
..
 | 
			
		||||
.de FOOTNOTE2
 | 
			
		||||
.FE
 | 
			
		||||
..
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue