1
0
Fork 0

Add @srcref to manual

doc/macros.texi (@srcref): Add macro.
master
Mike Gerwitz 2017-03-21 16:36:41 -04:00
parent b6c9045008
commit e477b15298
1 changed files with 15 additions and 0 deletions

View File

@ -105,3 +105,18 @@
@strong{Example:} \text\
@noticeend
@end macro
@c link to source file if URI is known, otherwise display
@c the path to the file
@ifset SRCURI
@macro srcref{path, display}
@url{@value{SRCURI}/\path\, @code{\display\}}
@end macro
@end ifset
@ifclear SRCURI
@macro srcref{path, display}
@file{\path\}
@end macro
@end ifclear