How can I use small caps in the condition of abbreviation? The Next CEO of Stack OverflowSmall digits for small caps?TeX in small caps?Junicode and Small Capstxfontsb small capsForce all small capsImproved fake small capsDefining consistent rules for the use of small capsSmall caps in parboxPlantin Small CapsWhen (not how) to use small caps
% symbol leads to superlong (forever?) compilations
India just shot down a satellite from the ground. At what altitude range is the resulting debris field?
Can the Reverse Gravity spell affect the Meteor Swarm spell?
Is it okay to store user locations?
Apart from "berlinern", do any other German dialects have a corresponding verb?
How do we know the LHC results are robust?
Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?
Why didn't Khan get resurrected in the Genesis Explosion?
How to safely derail a train during transit?
Why do remote companies require working in the US?
What does "Its cash flow is deeply negative" mean?
How do I solve this limit?
When did Lisp start using symbols for arithmetic?
What can we do to stop prior company from asking us questions?
Should I tutor a student who I know has cheated on their homework?
Only print output after finding pattern
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
What is meant by a M next to a roman numeral?
Are there languages with no euphemisms?
Visit to the USA with ESTA approved before trip to Iran
Why does standard notation not preserve intervals (visually)
Removing read access from a file
Implement the Thanos sorting algorithm
WOW air has ceased operation, can I get my tickets refunded?
How can I use small caps in the condition of abbreviation?
The Next CEO of Stack OverflowSmall digits for small caps?TeX in small caps?Junicode and Small Capstxfontsb small capsForce all small capsImproved fake small capsDefining consistent rules for the use of small capsSmall caps in parboxPlantin Small CapsWhen (not how) to use small caps
I am making abbreviations part of my book. A sample is presented as follows:
documentclass[12pt,oneside,openany,openbib,draft]book
%usepackage[utf8]inputenc
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviationsbeginlistrenewcommandmakelabelabbrlabel%
setlengthlabelwidth3cmsetlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0ptendlist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of it Pramāṇavārttika in De
item[PVetextscm] The embedded word of it Pramāṇavārttika in M
item[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
endabbreviations
The following is the second part:
[PVtextscd] The embedded word of it Pramāṇavārttika in De
[PVetextscm] The embedded word of it Pramāṇavārttika in M
[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
enddocument

However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?
small-caps
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 2 more comments
I am making abbreviations part of my book. A sample is presented as follows:
documentclass[12pt,oneside,openany,openbib,draft]book
%usepackage[utf8]inputenc
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviationsbeginlistrenewcommandmakelabelabbrlabel%
setlengthlabelwidth3cmsetlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0ptendlist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of it Pramāṇavārttika in De
item[PVetextscm] The embedded word of it Pramāṇavārttika in M
item[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
endabbreviations
The following is the second part:
[PVtextscd] The embedded word of it Pramāṇavārttika in De
[PVetextscm] The embedded word of it Pramāṇavārttika in M
[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
enddocument

However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?
small-caps
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
2
Please make your code snippet compilable ... Answers can be dependent of used document class etc.
– Kurt
Nov 26 '17 at 0:59
Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...and ending withenddocument.
– Cragfelt
Nov 26 '17 at 1:03
Note thatithas been obsolete in LaTeX for decades and ought not be used.\ought almost never be used outside special contexts such astabularandarray. To be fair, though,abbreviationsmight be defined astabularin your document anditemmight be redefined to print the name of a small antelope. In that case, it's obviously OK, though you should still avoidit.
– cfr
Nov 26 '17 at 2:24
If you want everything in small-caps in the list, just addscshapeto the environment definition.itwill break this, of course. Also, useurlto format URLs. If you really do want it all in small-caps, consider using italic small-caps by selecting a suitable font configuration.
– cfr
Nov 26 '17 at 2:28
@Cragfelt thanks. And I have amended the question as your request. Please give me some advice.
– King Chung Lo
Nov 27 '17 at 9:41
|
show 2 more comments
I am making abbreviations part of my book. A sample is presented as follows:
documentclass[12pt,oneside,openany,openbib,draft]book
%usepackage[utf8]inputenc
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviationsbeginlistrenewcommandmakelabelabbrlabel%
setlengthlabelwidth3cmsetlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0ptendlist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of it Pramāṇavārttika in De
item[PVetextscm] The embedded word of it Pramāṇavārttika in M
item[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
endabbreviations
The following is the second part:
[PVtextscd] The embedded word of it Pramāṇavārttika in De
[PVetextscm] The embedded word of it Pramāṇavārttika in M
[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
enddocument

However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?
small-caps
I am making abbreviations part of my book. A sample is presented as follows:
documentclass[12pt,oneside,openany,openbib,draft]book
%usepackage[utf8]inputenc
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviationsbeginlistrenewcommandmakelabelabbrlabel%
setlengthlabelwidth3cmsetlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0ptendlist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of it Pramāṇavārttika in De
item[PVetextscm] The embedded word of it Pramāṇavārttika in M
item[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
endabbreviations
The following is the second part:
[PVtextscd] The embedded word of it Pramāṇavārttika in De
[PVetextscm] The embedded word of it Pramāṇavārttika in M
[PVetextscm1] The embedded word of it Pramāṇavārttika in M1
enddocument

However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?
small-caps
small-caps
edited Feb 26 at 21:30
Kurt
40k850164
40k850164
asked Nov 26 '17 at 0:53
King Chung LoKing Chung Lo
19513
19513
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
2
Please make your code snippet compilable ... Answers can be dependent of used document class etc.
– Kurt
Nov 26 '17 at 0:59
Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...and ending withenddocument.
– Cragfelt
Nov 26 '17 at 1:03
Note thatithas been obsolete in LaTeX for decades and ought not be used.\ought almost never be used outside special contexts such astabularandarray. To be fair, though,abbreviationsmight be defined astabularin your document anditemmight be redefined to print the name of a small antelope. In that case, it's obviously OK, though you should still avoidit.
– cfr
Nov 26 '17 at 2:24
If you want everything in small-caps in the list, just addscshapeto the environment definition.itwill break this, of course. Also, useurlto format URLs. If you really do want it all in small-caps, consider using italic small-caps by selecting a suitable font configuration.
– cfr
Nov 26 '17 at 2:28
@Cragfelt thanks. And I have amended the question as your request. Please give me some advice.
– King Chung Lo
Nov 27 '17 at 9:41
|
show 2 more comments
2
Please make your code snippet compilable ... Answers can be dependent of used document class etc.
– Kurt
Nov 26 '17 at 0:59
Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...and ending withenddocument.
– Cragfelt
Nov 26 '17 at 1:03
Note thatithas been obsolete in LaTeX for decades and ought not be used.\ought almost never be used outside special contexts such astabularandarray. To be fair, though,abbreviationsmight be defined astabularin your document anditemmight be redefined to print the name of a small antelope. In that case, it's obviously OK, though you should still avoidit.
– cfr
Nov 26 '17 at 2:24
If you want everything in small-caps in the list, just addscshapeto the environment definition.itwill break this, of course. Also, useurlto format URLs. If you really do want it all in small-caps, consider using italic small-caps by selecting a suitable font configuration.
– cfr
Nov 26 '17 at 2:28
@Cragfelt thanks. And I have amended the question as your request. Please give me some advice.
– King Chung Lo
Nov 27 '17 at 9:41
2
2
Please make your code snippet compilable ... Answers can be dependent of used document class etc.
– Kurt
Nov 26 '17 at 0:59
Please make your code snippet compilable ... Answers can be dependent of used document class etc.
– Kurt
Nov 26 '17 at 0:59
Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass... and ending with enddocument.– Cragfelt
Nov 26 '17 at 1:03
Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass... and ending with enddocument.– Cragfelt
Nov 26 '17 at 1:03
Note that
it has been obsolete in LaTeX for decades and ought not be used. \ ought almost never be used outside special contexts such as tabular and array. To be fair, though, abbreviations might be defined as tabular in your document and item might be redefined to print the name of a small antelope. In that case, it's obviously OK, though you should still avoid it.– cfr
Nov 26 '17 at 2:24
Note that
it has been obsolete in LaTeX for decades and ought not be used. \ ought almost never be used outside special contexts such as tabular and array. To be fair, though, abbreviations might be defined as tabular in your document and item might be redefined to print the name of a small antelope. In that case, it's obviously OK, though you should still avoid it.– cfr
Nov 26 '17 at 2:24
If you want everything in small-caps in the list, just add
scshape to the environment definition. it will break this, of course. Also, use url to format URLs. If you really do want it all in small-caps, consider using italic small-caps by selecting a suitable font configuration.– cfr
Nov 26 '17 at 2:28
If you want everything in small-caps in the list, just add
scshape to the environment definition. it will break this, of course. Also, use url to format URLs. If you really do want it all in small-caps, consider using italic small-caps by selecting a suitable font configuration.– cfr
Nov 26 '17 at 2:28
@Cragfelt thanks. And I have amended the question as your request. Please give me some advice.
– King Chung Lo
Nov 27 '17 at 9:41
@Cragfelt thanks. And I have amended the question as your request. Please give me some advice.
– King Chung Lo
Nov 27 '17 at 9:41
|
show 2 more comments
1 Answer
1
active
oldest
votes
Well, the problem with your code is the font you are using.
In you code you defined the label for abbreviations like
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
So you want the label bold and a part of it bold and smallcaps. Exactly that is your problem. To fullfill that you need a font family which has a font for bold and smallcaps. Font family libertine for example can do that for you:
documentclass[12pt,oneside,openany,openbib,draft]book
usepackage[utf8]inputenc
usepackage[T1]fontenc % <============================================
usepackagelibertine % <==============================================
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviations%
beginlist%
renewcommandmakelabelabbrlabel%
setlengthlabelwidth3cm
setlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0pt%
%
%
endlist
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
endabbreviations
The following is the second part:
beginitemize
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
enditemize
test: normal font: [PVetextscm1]; bold: textbf[PVetextscm1];
type writer: texttt[PVetextscm1].
enddocument
This MWE results in:

As you can see in this example font libertine does not support textwriter and smallcups ...
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f403115%2fhow-can-i-use-small-caps-in-the-condition-of-abbreviation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Well, the problem with your code is the font you are using.
In you code you defined the label for abbreviations like
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
So you want the label bold and a part of it bold and smallcaps. Exactly that is your problem. To fullfill that you need a font family which has a font for bold and smallcaps. Font family libertine for example can do that for you:
documentclass[12pt,oneside,openany,openbib,draft]book
usepackage[utf8]inputenc
usepackage[T1]fontenc % <============================================
usepackagelibertine % <==============================================
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviations%
beginlist%
renewcommandmakelabelabbrlabel%
setlengthlabelwidth3cm
setlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0pt%
%
%
endlist
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
endabbreviations
The following is the second part:
beginitemize
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
enditemize
test: normal font: [PVetextscm1]; bold: textbf[PVetextscm1];
type writer: texttt[PVetextscm1].
enddocument
This MWE results in:

As you can see in this example font libertine does not support textwriter and smallcups ...
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
add a comment |
Well, the problem with your code is the font you are using.
In you code you defined the label for abbreviations like
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
So you want the label bold and a part of it bold and smallcaps. Exactly that is your problem. To fullfill that you need a font family which has a font for bold and smallcaps. Font family libertine for example can do that for you:
documentclass[12pt,oneside,openany,openbib,draft]book
usepackage[utf8]inputenc
usepackage[T1]fontenc % <============================================
usepackagelibertine % <==============================================
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviations%
beginlist%
renewcommandmakelabelabbrlabel%
setlengthlabelwidth3cm
setlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0pt%
%
%
endlist
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
endabbreviations
The following is the second part:
beginitemize
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
enditemize
test: normal font: [PVetextscm1]; bold: textbf[PVetextscm1];
type writer: texttt[PVetextscm1].
enddocument
This MWE results in:

As you can see in this example font libertine does not support textwriter and smallcups ...
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
add a comment |
Well, the problem with your code is the font you are using.
In you code you defined the label for abbreviations like
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
So you want the label bold and a part of it bold and smallcaps. Exactly that is your problem. To fullfill that you need a font family which has a font for bold and smallcaps. Font family libertine for example can do that for you:
documentclass[12pt,oneside,openany,openbib,draft]book
usepackage[utf8]inputenc
usepackage[T1]fontenc % <============================================
usepackagelibertine % <==============================================
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviations%
beginlist%
renewcommandmakelabelabbrlabel%
setlengthlabelwidth3cm
setlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0pt%
%
%
endlist
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
endabbreviations
The following is the second part:
beginitemize
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
enditemize
test: normal font: [PVetextscm1]; bold: textbf[PVetextscm1];
type writer: texttt[PVetextscm1].
enddocument
This MWE results in:

As you can see in this example font libertine does not support textwriter and smallcups ...
Well, the problem with your code is the font you are using.
In you code you defined the label for abbreviations like
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
So you want the label bold and a part of it bold and smallcaps. Exactly that is your problem. To fullfill that you need a font family which has a font for bold and smallcaps. Font family libertine for example can do that for you:
documentclass[12pt,oneside,openany,openbib,draft]book
usepackage[utf8]inputenc
usepackage[T1]fontenc % <============================================
usepackagelibertine % <==============================================
usepackagegraphicx
usepackage[total=5in, 8in]geometry
%% 備註 % 對表格的備注只能使用footnotetext
usepackage[ruled]bigfoot
usepackagetabularx
newcounterfootalt
defthefootaltfnsymbolfootalt
MakeSortedPerPagefootalt
WithSuffixdeffootnotedefault'refstepcounterfootalt
Footnotedefaultthefootalt
usepackage[hang]footmisc
%% Abbreviation
usepackagecalc
usepackagelipsum
makeatletter
newcommandtocfillcleadershbox$m@th mkern@dotsep mu . mkern@dotsep mu$hfill
makeatother
newcommandabbrlabel[1]makebox[3cm][l]textbf#1 tocfill
newenvironmentabbreviations%
beginlist%
renewcommandmakelabelabbrlabel%
setlengthlabelwidth3cm
setlengthleftmarginlabelwidth+labelsep%
setlengthitemsep0pt%
%
%
endlist
begindocument
chapterAbbreviations
beginabbreviations
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
endabbreviations
The following is the second part:
beginitemize
item[PVtextscd] The embedded word of emphPramānavārttika in De
item[PVetextscm] The embedded word of emphPramānavārttika in M
item[PVetextscm1] The embedded word of emphPramānavārttika in M1
enditemize
test: normal font: [PVetextscm1]; bold: textbf[PVetextscm1];
type writer: texttt[PVetextscm1].
enddocument
This MWE results in:

As you can see in this example font libertine does not support textwriter and smallcups ...
edited Feb 26 at 21:27
answered Nov 27 '17 at 22:51
KurtKurt
40k850164
40k850164
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
add a comment |
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
I add usepackage[utf8]inputenc usepackage[T1]fontenc usepackagelibertine as you said, but it does now works in my case.
– King Chung Lo
Nov 28 '17 at 22:32
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
@KingChungLo What does "not work" mean? Do you get an error message? Which one? Are there related warnings? Check the log file and add that warning to your question please. What exactly does not work, what do you get and what do you want?
– Kurt
Feb 26 at 21:29
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f403115%2fhow-can-i-use-small-caps-in-the-condition-of-abbreviation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Please make your code snippet compilable ... Answers can be dependent of used document class etc.
– Kurt
Nov 26 '17 at 0:59
Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...and ending withenddocument.– Cragfelt
Nov 26 '17 at 1:03
Note that
ithas been obsolete in LaTeX for decades and ought not be used.\ought almost never be used outside special contexts such astabularandarray. To be fair, though,abbreviationsmight be defined astabularin your document anditemmight be redefined to print the name of a small antelope. In that case, it's obviously OK, though you should still avoidit.– cfr
Nov 26 '17 at 2:24
If you want everything in small-caps in the list, just add
scshapeto the environment definition.itwill break this, of course. Also, useurlto format URLs. If you really do want it all in small-caps, consider using italic small-caps by selecting a suitable font configuration.– cfr
Nov 26 '17 at 2:28
@Cragfelt thanks. And I have amended the question as your request. Please give me some advice.
– King Chung Lo
Nov 27 '17 at 9:41