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

Opposite of a diet

What happens if you roll doubles 3 times then land on "Go to jail?"

How do we know the LHC results are robust?

What is the meaning of "rider"?

A pseudo-riley?

Why here is plural "We went to the movies last night."

Why do professional authors make "consistency" mistakes? And how to avoid them?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Grabbing quick drinks

Anatomically Correct Strange Women In Ponds Distributing Swords

MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs

Return the Closest Prime Number

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

When did Lisp start using symbols for arithmetic?

How to Reset Passwords on Multiple Websites Easily?

How to safely derail a train during transit?

Unreliable Magic - Is it worth it?

Inappropriate reference requests from Journal reviewers

Only print output after finding pattern

What size rim is OK?

Why is Miller's case titled R (Miller)?

How should I support this large drywall patch?

'Given that' in a matrix

Can a single photon have an energy density?



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

Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

Are small insurances worth itIs insurance worth it if you can afford to replace the item? If not, when is it?Is accident insurance worth it for my kids who play sportsIs insuring property for more than it is worth allowed?At what point does it become worth it to file an insurance claim?Are wage loss insurance programs worth the cost compared to having an emergency fund?When is an event worth insuring against?Is insurance worth it if you can afford to replace the item? If not, when is it?FHA loan just commenced : Any way to get any of the up-front mortgage insurance back?Which types of insurances do I need to buy?Should I carry less renter's insurance if I can self-insure?Mortgage Adviser Signed Me Up For Multiple Home and Life Insurances (UK)Why many travel insurances don't cover country of nationality?