Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macros
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KWARC
macros
Commits
855d44b4
Commit
855d44b4
authored
5 years ago
by
Michael Kohlhase
Browse files
Options
Downloads
Patches
Plain Diff
hideNP option
parent
71e797c0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ed/ed.dtx
+8
-3
8 additions, 3 deletions
ed/ed.dtx
ed/ed.pdf
+0
-0
0 additions, 0 deletions
ed/ed.pdf
ed/ed.sty
+4
-0
4 additions, 0 deletions
ed/ed.sty
with
12 additions
and
3 deletions
ed/ed.dtx
+
8
−
3
View file @
855d44b4
...
...
@@ -49,7 +49,7 @@
% \changes{v1.8}{2012/01/29}{adding \texttt{edstub} environment}
% \changes{v1.8}{2012/06/29}{adding \texttt{marginnote} option}
% \changes{v1.9}{2020/02/12}{documenting \texttt{pdfbookmarks} option}
% \changes{v1.9}{2020/03/24}{adding the \texttt{hideOP} option}
% \changes{v1.9}{2020/03/24}{adding the \texttt{hideOP}
and \texttt{hideNP}
option}
%
% \GetFileInfo{ed.sty}
%
...
...
@@ -109,8 +109,9 @@
% used instead! This |hide| option useful for preparing ``clean'' version for outside
% consumption without losing the management metadata.
%
% The \DescribeMacro{hideOP}|hideOP| option signals the |ed| package to hide the |oldpart|
% environments (and the corresponding notes) as well.
% The \DescribeMacro{hideOP}|hideOP| and \DescribeMacro{hideNP}|hideNP| options signal the
% |ed| package to hide the |oldpart| and |newpart| environments respectively (and the
% corresponding notes) as well.
%
% In some situations the |\marginpar| decorations generated by editorial notes are
% disallowed, for these situations the |ed| package has the \DescribeMacro{marginnote}
...
...
@@ -261,6 +262,7 @@
%<*package>
\newif\ifshowednotes\showednotesfalse
\newif\ifhideOP\hideOPfalse
\newif\ifhideNP\hideNPfalse
\newif\ifmargins\marginstrue
\newif\ifmarginnote\marginnotefalse
\newif\ifednotebookmarks\ednotebookmarksfalse
...
...
@@ -273,6 +275,7 @@
\DeclareOption{draft}{\showednotestrue\message{ed.sty: showing ednotes}}
\DeclareOption{final}{\showednotesfalse\message{ed.sty: hiding ednotes}}
\DeclareOption{hideOP}{\hideOPtrue\message{ed.sty: hiding oldparts}}
\DeclareOption{hideNP}{\hideNPtrue\message{ed.sty: hiding newparts}}
\DeclareOption{nomargins}{\marginsfalse}
\DeclareOption{marginnote}{\marginnotetrue}
\DeclareOption{pdfbookmarks}{\ednotebookmarkstrue}
...
...
@@ -289,6 +292,7 @@
\RequirePackage{verbatim}
\fi
\ifhideOP\RequirePackage{comment}\fi
\ifhideNP\RequirePackage{comment}\fi
\ifednotebookmarks\RequirePackage{hyperref}\fi
% \end{macrocode}
% This ends the package setup code, so we can come to the implementation of the
...
...
@@ -470,6 +474,7 @@
{\ed@part{#1}{Old Part}\b@oldpart@label\b@oldpart@margin\ifshowednotes\color{gray}\fi}
{\ended@part\e@oldpart@margin}
\ifhideOP\excludecomment{oldpart}\excludecomment{Oldpart}\fi
\ifhideNP\excludecomment{newpart}\excludecomment{Newpart}\fi
% \end{macrocode}
% \end{environment}
%
...
...
This diff is collapsed.
Click to expand it.
ed/ed.pdf
+
0
−
0
View file @
855d44b4
No preview for this file type
This diff is collapsed.
Click to expand it.
ed/ed.sty
+
4
−
0
View file @
855d44b4
...
...
@@ -10,6 +10,7 @@
\ProvidesPackage
{
ed
}
[2020/03/24 v1.9 Editorial Notes]
\newif\ifshowednotes\showednotesfalse
\newif\ifhideOP\hideOPfalse
\newif\ifhideNP\hideNPfalse
\newif\ifmargins\marginstrue
\newif\ifmarginnote\marginnotefalse
\newif\ifednotebookmarks\ednotebookmarksfalse
...
...
@@ -18,6 +19,7 @@
\DeclareOption
{
draft
}{
\showednotestrue\message
{
ed.sty: showing ednotes
}}
\DeclareOption
{
final
}{
\showednotesfalse\message
{
ed.sty: hiding ednotes
}}
\DeclareOption
{
hideOP
}{
\hideOPtrue\message
{
ed.sty: hiding oldparts
}}
\DeclareOption
{
hideNP
}{
\hideNPtrue\message
{
ed.sty: hiding newparts
}}
\DeclareOption
{
nomargins
}{
\marginsfalse
}
\DeclareOption
{
marginnote
}{
\marginnotetrue
}
\DeclareOption
{
pdfbookmarks
}{
\ednotebookmarkstrue
}
...
...
@@ -30,6 +32,7 @@
\RequirePackage
{
verbatim
}
\fi
\ifhideOP\RequirePackage
{
comment
}
\fi
\ifhideNP\RequirePackage
{
comment
}
\fi
\ifednotebookmarks\RequirePackage
{
hyperref
}
\fi
\newcommand\ednoteshape
{
\sffamily
}
\newcounter
{
ednote
}
...
...
@@ -89,6 +92,7 @@
{
\ed
@part
{
#1
}{
Old Part
}
\b
@oldpart@label
\b
@oldpart@margin
\ifshowednotes\color
{
gray
}
\fi
}
{
\ended
@part
\e
@oldpart@margin
}
\ifhideOP\excludecomment
{
oldpart
}
\excludecomment
{
Oldpart
}
\fi
\ifhideNP\excludecomment
{
newpart
}
\excludecomment
{
Newpart
}
\fi
\newcommand\todolabels
[2]
{
\def\b
@todo@label
{
#1
}
\def\e
@todo@label
{
#2
}}
\newcommand\todomargins
[2]
{
\def\b
@todo@margin
{
#1
}
\def\e
@todo@margin
{
#2
}}
\newcommand\b
@todo@label
{
ToDo
}
\newcommand\e
@todo@label
{
Done
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment