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










0















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


enter image description here



However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?










share|improve this question
















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 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











  • 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















0















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


enter image description here



However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?










share|improve this question
















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 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











  • 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













0












0








0








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


enter image description here



However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?










share|improve this question
















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


enter image description here



However textscxxx command does not function (like those shown in second part) under abbreviation condition. What can I do for this?







small-caps






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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











  • 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












  • 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 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











  • 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







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










1 Answer
1






active

oldest

votes


















0














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:



resulting pdf



As you can see in this example font libertine does not support textwriter and smallcups ...






share|improve this answer

























  • 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











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
);



);













draft saved

draft discarded


















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









0














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:



resulting pdf



As you can see in this example font libertine does not support textwriter and smallcups ...






share|improve this answer

























  • 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















0














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:



resulting pdf



As you can see in this example font libertine does not support textwriter and smallcups ...






share|improve this answer

























  • 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













0












0








0







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:



resulting pdf



As you can see in this example font libertine does not support textwriter and smallcups ...






share|improve this answer















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:



resulting pdf



As you can see in this example font libertine does not support textwriter and smallcups ...







share|improve this answer














share|improve this answer



share|improve this answer








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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

How to remove border form elements in the last row?Targeting flex items on the last rowHow to vertically wrap content with flexbox?Remove border from IFrameCSS3's border-radius property and border-collapse:collapse don't mix. How can I use border-radius to create a collapsed table with rounded corners?Div width 100% minus fixed amount of pixelsBorder around specific rows in a table?How to remove border (outline) around text/input boxes? (Chrome)How do I remove the space between inline-block elements?Flex-box: Align last row to gridRemove blue border from css custom-styled button in ChromeFill remaining vertical space with CSS using display:flexhow style elements in the last row of flexbox row layout with pure css without js