Skip to content

Commit f4abba1

Browse files
Fixing the location of the AutoLaTeX documentation (man page...)
1 parent d184aef commit f4abba1

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
autolatex 31.2
1+
autolatex 31.3

pm/AutoLaTeX/Core/Main.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ sub analyzeCommandLineOptions(\%) {
117117
$realcfg->{'__private__'}{'action.fix config file'} = File::Spec->rel2abs($realcfg->{'__private__'}{'action.fix config file'}) if ($realcfg->{'__private__'}{'action.fix config file'});
118118
},
119119

120-
'help|?' => sub { showManual(getAutoLaTeXDir(),"pod","autolatex.pod"); },
120+
'help|?' => sub { showManual(getAutoLaTeXDocDir(),"autolatex.pod"); },
121121

122122
'I=s@' => sub {
123123
if (!$cfg->{'generation.translator include path'}) {

pm/AutoLaTeX/Core/Util.pm

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ our $VERSION = '14.0';
4242

4343
@ISA = ('Exporter');
4444
@EXPORT = qw( &isHash &isArray &removeFromArray &arrayContains &getAutoLaTeXDir
45-
&getAutoLaTeXName &getAutoLaTeXLaunchingName &getAutoLaTeXVersion
45+
&getAutoLaTeXName &getAutoLaTeXDocDir &getAutoLaTeXLaunchingName &getAutoLaTeXVersion
4646
&setAutoLaTeXInfo &showManual &printDbg &printErr &formatErr &printWarn &setDebugLevel
4747
&getDebugLevel &printDbgFor &dumpDbgFor &arrayIndexOf &printDbgIndent
4848
&printDbgUnindent &runCommandOrFail &runSystemCommand &runCommandOrFailFromInput
@@ -186,6 +186,19 @@ sub getAutoLaTeXDir() {
186186

187187
=pod
188188
189+
=item B<getAutoLaTeXDocDir()>
190+
191+
Replies the location of the documentation of AutoLaTeX.
192+
193+
I<Returns:> the AutoLaTeX documentation directory.
194+
195+
=cut
196+
sub getAutoLaTeXDocDir() {
197+
return File::Spec->catfile(getAutoLaTeXDir(), "doc");
198+
}
199+
200+
=pod
201+
189202
=item B<getAutoLaTeXName()>
190203
191204
Replies the base filename of the main AutoLaTeX script.
@@ -335,7 +348,7 @@ sub showManual(@) {
335348
}
336349
}
337350

338-
# Display the
351+
# Display the POD
339352
if ($pod) {
340353
my $pod = File::Spec->catfile(@_, $pod);
341354
if ( -r "$pod" ) {

0 commit comments

Comments
 (0)