TheKileHandbook
void document.insertSubsection();
Inserta\subsectioncommand(seealsodocument.insertSection()).
void document.insertSubsubsection();
Inserta\subsubsectioncommand(seealsodocument.insertSection()).
void document.insertParagraph();
Inserta\paragraphcommand(seealsodocument.insertSection()).
void document.insertSubparagraph();
Inserta\subparagraphcommand(seealsodocument.insertSection()).
void document.insertLabel();
Inserta\labelcommand.
void document.insertReference();
Inserta\refcommand. AswithchoosingthemenuentryL
A
T
E
X!References!refa
dialogwillappear,whereyoucanchoosefromalreadydefinedlabels,whicharelistedina
combobox.
void document.insertPageref();
Inserta\pagerefcommand(seealsodocument.insertReference()).
void document.insertCitation();
Inserta\citecommand.
void document.insertIndex();
Inserta\indexcommand.
void document.insertFootnote();
Inserta\footnotecommand.
101
Pdf mail merge - Merge, append PDF files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provide C# Demo Codes for Merging and Appending PDF Document
c# pdf merge; attach pdf to mail merge in word
Pdf mail merge - VB.NET PDF File Merge Library: Merge, append PDF files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Guide and Sample Codes to Merge PDF Documents in .NET Project
break pdf into multiple files; batch combine pdf
TheKileHandbook
void document.comment();
Insertscommentmarkerstomaketheselectionorcurrentlineacomment.
void document.uncomment();
Removescommentmarkersfromtheselectionorcurrentline.
void document.uppercase();
Puttheselectedtextortheletterafterthecursorinuppercase.
void document.lowercase();
Puttheselectedtextortheletterafterthecursorinlowercase.
void document.capitalize();
Capitalizetheselectedtextorthecurrentword.
void document.joinLines();
Joinsthelinesofthecurrentselection.Twosucceedingtextlinesarealwaysseparatedwith
asinglespace.
void document.insertIntelligentNewline();
Insertasmartnewline(seeSection5.11).
void document.insertIntelligentTabulator();
Insertasmarttabulator(seeSection5.12).
void document.editBegin();
Startsaneditgroupforundo/redogrouping.MakesuretoalwayscalleditEnd()asoften
asyoucalleditBegin(). CallingeditBegin()internallyusesareferencecounter,i.e.,this
callcanbenested.
void document.editEnd();
Endsaneditgroup.ThelastcallofeditEnd()(i.e.theoneforthefirstcallofeditBegin())
finishestheeditstep.
StringList document.labelList();
ReturnsalldefinedlabelsasaStringList,whichcanbeusedinJavaScriptasanarrayof
strings.
StringList document.bibitemList();
ReturnsalldefinedbibitemsasaStringList,whichcanbeusedinJavaScriptasanarray
ofstrings.
void document.refreshStructure();
Refreshthestructureview(seechapter11).
102
C# Word - MailMerge Processing in C#.NET
Mail Merge Processing. |. Home ›› XDoc.Word ›› C# Word: Process Mail Merge. IDocument doc = document0.GetDocument().Clone(); // Execute mail merge.
all jpg to one pdf converter; add pdf pages together
C# Word - Merge Word Documents in C#.NET
C# Word - Merge Word Documents in C#.NET. Provide C# Demo Codes for Merging and Appending Word Document. Combine and Merge Multiple Word Files into One Using C#.
pdf combine; c# merge pdf files
TheKileHandbook
14.3.6 TheKileAPI
Theglobalobject(variable)kileisusedtohandletoplevelinteractionswiththeoutsideworld,
inputmessageanddialoginterfaces.TheseAPIcallsaredividedintosubobjectstostructurethis
partofthescriptingAPI.ConceptuallykileisabitlikewindowinabrowserAPI.
• kile.alert: : messageboxes
• kile.input: : getuserinput
• kile.wizard: : calloneofKile’swizards
• kile.script: : getinfoaboutarunningscript
• kile.file: : fileoperationslikereadandwrite.
14.3.6.1 Alert
void kile.alert.information(
String text
,
String caption
);
DisplayanInformationdialog.
text
isthemessagestringand
caption
thetitleofthemes-
sagebox.Thedefaulttitleisthescriptname.
void kile.alert.sorry(
String text
,
String caption
);
DisplayaSorrydialog.
text
isthemessagestringand
caption
thetitleofthemessagebox.
Thedefaulttitleisthescriptname.
void kile.alert.error(
String text
,
String caption
);
DisplayanErrordialog.
text
isthemessagestringand
caption
thetitleofthemessage
box.Thedefaulttitleisthescriptname.
String kile.alert.question(
String text
,
String caption
);
Displayasimplequestiondialog.
text
isthemessagestringand
caption
thetitleofthe
messagebox.Thedefaulttitleisthescriptname.Thereturnedstringiseitheryesorno.
String kile.alert.warning(
String text
,
String caption
);
Displayasimplewarningdialog.
text
isthemessagestringand
caption
thetitleofthe
messagebox.Thedefaulttitleisthescriptname.Thereturnedstringiseithercontinueor
cancel.
14.3.6.2 Input
String kile.input.getListboxItem(
String caption
,
String label
,
StringList
list
);
Functiontolettheuserselectanitemfromalist,whichisshownasalistbox.
caption
is
thetextthatisdisplayedinthetitlebar,
label
isthetextthatappearsasthelabelforthe
listand
list
isthestringlistwhichisinsertedintothelist.
103
How to C#: Overview of Using XDoc.Word
Tell C# users how to: create a new Word file and load Word from pdf; merge, append, and split Word files; insert, delete, move, rotate, copy and paste Word
add pdf together one file; build pdf from multiple files
How to C#: Convert PDF, Excel, PPT to Word
Images. Convert Word to ODT. Convert PDF to Word. Convert ODT to Word. Document Delete Word Pages. Page: Move Word Page Position. Page: Extract Word Pages. Mail
c# pdf merge; append pdf
TheKileHandbook
String kile.input.getComboboxItem(
String caption
,
String label
,
StringLi-
st list
);
Functiontolettheuserselectanitemfromalist,whichisshownasacombobox.
caption
isthetextthatisdisplayedinthetitlebar,
label
isthetextthatappearsasthelabelforthe
listand
list
isthestringlistwhichisinsertedintothelist.
String kile.input.getText(
String caption
,
String label
);
Functiontogetastringfromtheuser.
caption
isthetextthatisdisplayedinthetitlebar
and
label
thetextthatappearsasalabelforthelineedit.
String kile.input.getLatexCommand(
String caption
,
String label
);
FunctiontogetaL
A
T
E
Xcommandfromtheuser.Thismeansthatonlylower-andupper-
caselettersareallowed.
caption
isthetextthatisdisplayedinthetitlebarand
label
the
textthatappearsasalabelforthelineedit.
int kile.input.getInteger(
String caption
,
String label
,
int min n = = INT_MI-
N
,
int max x = = INT_MAX
);
Functiontogetanintegerfromtheuser.
caption
isthetextthatisdisplayedinthetitlebar.
label
isthetextthatappearsasthelabelforthespinbox.
min
and
max
aretheminimum
andmaximumallowablevaluestheusermaychoose.DefaultvaluesareINT_MINandINT_
MAX.
int kile.input.getPosInteger(
String caption
,
String label
,
int min n = = 1
,
int max x = = INT_MAX
);
Functiontogetapositiveintegerfromtheuser.
caption
isthetextthatisdisplayedinthe
titlebar.
label
isthetextthatappearsasthelabelforthespinbox.
min
and
max
arethe
minimumandmaximumallowablevaluestheusermaychoose. Defaultvaluesare1and
INT_MAX.
14.3.6.3 Wizard
void kile.wizard.tabular();
CallstheTabularwizard,whichhelpstowriteatabularenvironment(seeSection7.3).
void kile.wizard.array();
CallstheArraywizard,whichhelpstowriteanarrayenvironment(seeSection7.3).
void kile.wizard.tabbing();
CallstheTabbingwizard,whichhelpstowriteatabbingenvironment(seeSection7.3).
void kile.wizard.floatEnvironment();
CallstheFloatswizard,whichhelpstoinsertfloatingelements(seeSection7.4).
void kile.wizard.mathEnvironment();
CallstheMathwizard,whichhelpstoinsertmathenvironments(seeSection7.5).
void kile.wizard.postscript();
CallsthePostscriptToolswizard,whichmayhelptomanipulateorrearrangePostscriptdoc-
uments(seeSection7.6).
104
C# Word - Convert Word to PDF in C#.NET
Word: Convert Word to PDF. C# Word - Convert Word to PDF in C#.NET. Online C# Tutorial for Converting Word to PDF (.pdf) Document. Word to PDF Conversion Overview
pdf mail merge plug in; pdf combine files online
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
Password protected PDF file can be printed to Word for mail merge. C# source code is available for copying and using in .NET Class.
acrobat reader merge pdf files; add pdf files together reader
TheKileHandbook
14.3.6.4 Script
String kile.script.name();
Returnsthebasenameofarunningscript(withoutpathandextension).
String kile.script.caption();
Returnsastring, whichcanbeusedasacaptionofalert boxes. . ItlookslikeScript:
scriptname.js.
14.3.6.5 File
Object kile.file.read(
String filename
);
Readthecontentsofatextfile.Itisusedlike
Example:var res = = kile.file.read(´´path/to/file.txt´´);
Thereturnvalueresisanobject(better:amap)withthreeproperties:
• status: Givesthestatuscodeoftheoperation,whichcanbe0(noerror),1(accessfailed)
or2(accessdenied).So,ifnoerroroccurred,thevalueofres.statusorres[´´stat
us´´]willbe0.
• result: Containsthetextofthegivenfile.
• message: Containsanerrormessage,ifanerroroccurred.
Object kile.file.read();
Thesameasread(filename),butnofilenameisgiven. Adialogwillappeartoselectthe
filetoread.
Object kile.file.write(
String filename
,
String text
);
Writethegiventextintoafile.Itisusedlike
Example:var res = = kile.file.write(´´path/to/file.txt´´,´´Some e text...´´);
Thereturnvalueresisanobject(better:amap)withtwoproperties:statusandmessage
(seeread()formoreinformation).
Object kile.file.write(
String text
);
The sameaswrite(filename,text), butno filename isgiven. . A A dialogwillappearto
chooseafilename.
String kile.file.getOpenFileName(
String startDir
,
String filter
);
Createsamodalfiledialogandreturntheselectedfilenameoranemptystringifnoneis
chosen.Notethatwiththismethodtheusermustselectanexistingfilename.
Parameters:
• startDir: Startingdirectoryoftheopendialog.
• filter: Ashellgloboramime-type-filterthatspecifieswhichfilestodisplay.Refertothe
KFileDialogdocumentationformoreinformationonthisparameter.
Bothparametersareoptional.Ifyouomitfilter,allfileswillbedisplayed.Ifadditionally
startDirisomitted,thedialogwilltakethecurrentdocumentdirectoryasstartingpoint.
String kile.file.getSaveFileName(
String startDir
,
String filter
);
Createsamodalfiledialogandreturnstheselectedfilenameoranemptystringifnone
ischosen. Notethatwiththismethodtheuserneednotselectanexistingfilename. See
getOpenFileName()foranexplanationoftheparameters.
105
XDoc.Word for .NET, Advanced .NET Word Processing Features
mail-merge in OpenXML file, Microsoft access database and field; More about Word Mail-Merge ▶. Extract raw image or clipped and scaled image from PDF file.
all jpg to one pdf converter; append pdf files reader
C# Word - Process Word Document in C#
Word document processing implementations using C# demo codes, such as add or delete Word document page, change Word document pages order, merge or split Word
break pdf into multiple files; pdf merge comments
TheKileHandbook
14.4 Examples
SomeexamplesmayhelpyoutounderstandhowtousethescriptingAPI.Theseexamplesand
somemorearefoundinthescriptingdirectoryofKile: KILE_APP_DIR/scripts/ . Eachscript
containsashortdescription.
14.4.1 Example1:replaceenvironmentname
ReplaceasurroundingL
A
T
E
Xenvironmentwithanother,wheretherelativecursorpositionwill
notbechanged.\begin{abc}...\end{abc}forexamplecanbechangedto\begin{xyz}.
..\end{xyz}.
var range e = = document.environmentRange(false);
if ( ( range.isValid() ) ) ) {
var envname = kile.input.getLatexCommand("Enter r Environment","New
-
environment name:");
if ( ( envname != ’’ ’ ) ) {
replaceEnvCommand(envname,range);
}
}
else {
kile.alert.sorry("No surrounding LaTeX environment found.");
}
function replaceEnvCommand(newEnv,r)
{
var c c = = view.cursorPosition();
var envname = document.environmentName();
if ( ( envname != "" " ) ) {
var beginRange = = new w Range(r.start,new Cursor(r.start.line,r.start.  -
column+8+envname.length));
var endRange e = = new Range(new Cursor(r.end.line,r.end.column-6-envname.  -
length),r.end);
document.editBegin();
document.replaceText(endRange,"\\end{"+newEnv+"}");
document.replaceText(beginRange,"\\begin{"+newEnv+"}");
document.editEnd();
}
}
14.4.2 Example2:replaceaL
A
T
E
Xfontcommand
ReplaceasurroundingL
A
T
E
Xfontcommandwithanotherfontcommand,whenthecursoris
placedinsidethetexgroup.Therelativecursorpositionwillnotbechanged.\textbf{abc}for
examplecanbechangedto\textit{abc}.
var fontCommands s = = new Array("\\textbf","\\textit","\\textsl","\\texttt",
"\\textsc","\\textrm","\\textsf","\\emph");
var range e = = document.texgroupRange(false);
if ( ( range.isValid() ) ) ) {
replaceFontCommand(range);
106
VB.NET Image: Barcode Reader SDK, Read Intelligent Mail from Image
VB.NET Demo Code to Decode Intelligent Mail on PDF Page. With the help of well developed image barcode reading API methods and following demo code in VB program
break pdf file into multiple files; acrobat merge pdf files
How to C#: Quick to Start Using XDoc.Word
To meet your requirement, on this quick to start page, we will tell how to create a C# console application, merge two Word files, and save into a new Word file
c# merge pdf; acrobat combine pdf files
TheKileHandbook
}
else {
kile.alert.sorry("No surrounding TeX group found.");
}
function replaceFontCommand(r)
{
var c c = = view.cursorPosition();
document.editBegin();
view.setCursorPosition(r.start);
var cmd d = = document.latexCommand();
var index = = fontCommands.indexOf(cmd);
if ( ( index >= = 0 0 ) ) {
var cmdRange e = = document.latexCommandRange();
if ( cmdRange.isValid() ) ) ) {
var newcommand = kile.input.getListboxItem("Choose",
"Choose font command:",buildCmdList(cmd))  -
;
if ( ( newcommand != "" " ) ) {
document.replaceText(cmdRange,newcommand);
c.column = = c.column - - (cmd.length h - newcommand.length);
}
}
/
view.setCursorPosition(c);
}
else {
kile.alert.sorry("No surrounding font command d found.");
}
document.editEnd();
}
function buildCmdList(current)
{
var result = = new w Array();
for ( ( i=0; ; i<fontCommands.length; ++i i ) ) {
if ( fontCommands[i] ] != = current ) ) {
result.push(fontCommands[i]);
}
}
return result;
}
14.4.3 Example3:surroundselectedtext
Surround selected text withaTeXcommand, , where e the e relative e cursor position n willnot t be
changed.abcforexamplecanbechangedto\texcommand{abc}.
var range e = = view.selectionRange();
if ( ( range.isValid() ) ) ) {
var cmd d = = kile.input.getLatexCommand("Choose","Choose surrounding LaTeX
-
command:");
if ( ( cmd != "" " ) ) {
surroundTexCommand("\\"+cmd,range);
}
}
107
TheKileHandbook
else {
kile.alert.sorry("No selection n found.");
}
function surroundTexCommand(cmd,r)
{
var c c = = view.cursorPosition();
document.editBegin();
view.clearSelection();
document.insertText(r.end,"}");
document.insertText(r.start,cmd+"{");
c.column = = c.column n + + cmd.length + + 2;
view.setCursorPosition(c);
document.editEnd();
}
108
TheKileHandbook
Chapter15
Help
15.1 HelpDocuments
L
A
T
E
Xisarathersophisticatedsystem,wherebasicfeaturescanbeexpandedbyagreatvariety
ofadditionalpackages.Kileprovidesnumerousdifferentwaystoaidtheuser.
LaTeXReference
AnalphabeticalindexofthemostcommonL
A
T
E
Xcommands.
TeXDocumentation
teT
E
X/TeXLiveshipswithahugenumberofhelpdocuments. Thisincludesdocumenta-
tionforalltheincludedpackagesandanadditionalL
A
T
E
Xreference.
LaTeX
AfullreferenceforT
E
Xandfriends.Thisisnotonlyadescriptionofallprograms,butsome
importantpackagesarealsomentioned. ItalsoincludesafullreferencemanualofLAT
E
X
commands—idealforlookingupaparticularpieceofformattingwhilewritingadocument.
Asthisdocumentisreallyextensive,itisreferencedinKilebythreebookmarks.
LaTeXCommand
AnotheralphabeticalindexofthemostcommonL
A
T
E
Xcommands.
LaTeXSubject
AdescriptionofimportantL
A
T
E
Xsubjects.
LaTeXEnv
AnalphabeticalindexofthemostcommonL
A
T
E
Xenvironments.
15.2 ContextSensitiveHelp
Kile alsosupportsacontext sensitivehelp,whichiscalledwithCtrl+Alt+H,K.InSettings!
ConfigureKile...!Kile+HelpyoucanchoosewhetheryouwanttouseKile’sLAT
E
Xreference
orthehelpsystemofteT
E
X/TeXLive,whichisthedefaultsetting.
109
TheKileHandbook
15.3 SearchingforKeywords
ItisnotalwayseasytofindtherightdocumentasteT
E
X/TeXLiveshipswithahugenumber
ofhelpdocuments. Inordertofacilitatethisprocess,teT
E
X/TeXLiveprovidesatinyprogram
calledtexdoctk. Itprovidesadatabaseofallthehelpdocuments,forwhichKileoffersauser-
friendlyinterface.
Allthedocumentsaregroupedintocategories.Additionally,onecansearchforpackagenames
orkeywords.Kilewillthenshowonlythehelpdocumentsmatchingthesearchstring.
110
Documents you may be interested
Documents you may be interested