- MacTEX
- Put them in your path by adding the following line to your ~/
. bash_profile: export PATH=$PATH: /usr/local/texlive/2011/bin/x86_64-darwin- Install ImageMagick using command: brew
install imagemagick In your location (directory), convert the file tohtml :htlatex paper. tex
Showing posts with label word. Show all posts
Showing posts with label word. Show all posts
Convert LaTex file to Word
Software requirements:
Java - Count the number of times a word appears in a string
- Apache Common StringUtils function
1: public static int countMatches ( String str, String sub) {
2: if (isEmpty( str) || isEmpty ( sub)) {
3: return 0;
4: }
5: int count = 0;
6: int idx = 0;
7: while ((idx = str . indexOf ( sub, idx)) ! = -1) {
8: count++;
9: idx += sub. length( );
10: }
11: return count;
12: }
13: public static boolean isEmpty( String str) {
14: return str == null || str . length( ) == 0;
15: }
- Use Regex
1: public static int countMatchesWithRegex ( String str, String reg ) {
2: Matcher m = Pattern.compile(reg).matcher(str);
3: int matches = 0;
4: while( m. find ( ))
5: matches++;
6: return matches;
7: }
- Difference: Regex approach can get correct counting over "Africa" and "African"
1: String target = "South Africa South African South Africa.";
2: System. out. println ( StringUtils. countMatches ( target, "South Africa")); // Return 3
3: System. out. println ( StringUtils. countMatchesWithRegex ( target, "\\bSouth African\\b")); // Return 1
Tips for writing paper
- Save chart with 300dpi from Excel
- Select chart (12pt)
- [Save as] PDF (default 300dpi)
- Insert into paper
- Insert images in Mac 2011 Word
- Insert image directly (Use Textbox the images will be disappeared while converting the file to PDF)
- How to format footnote separator line?
- Switch to Draft View
- Select View> Footnotes
- Open the list in the bar that appears in the lower part of the document window
- Select Footnote Separator
- Click Reset
- Pics are moving around the pages
- Right-click on the picture and select Format Picture
- Click on the Layout tab
- Click on the Advanced button
- Click on the Picture Position tab
- Under both the Horizontal and Vertical selections, select Absolute Position, and pick "Page" from the drop-down menu at the right
- Also, click on the checkbox that says "Lock anchor.
While Endnote not visible or not working in Word 2011 for Mac OS
Close Word and EndNote.
Open your hard drive and go to the folder: EndNote X-: Applications:EndNote X-:Cite While You Write
Copy the file EndNote CWYW Word 2011.bundle
Go to the folder Applications:Microsoft Office 2011:Office:Startup:Word and paste the copied file
Start Word, go to Word > Preferences and click on File Locations
Make sure the Startup folder is set by highlighting Startup and clicking on Modify. Navigate to Applications folder then Microsoft Office 2011:Office:Startup:Word and click Choose
Click OK and close Word.
Start EndNote and then start Word. - See more at: http://www.bartneck.de/2012/06/24/endnote-toolbar-not-visible-in-microsoft-word-2011-for-mac/#sthash.VLajtHon.dpuf
Open your hard drive and go to the folder: EndNote X-: Applications:EndNote X-:Cite While You Write
Copy the file EndNote CWYW Word 2011.bundle
Go to the folder Applications:Microsoft Office 2011:Office:Startup:Word and paste the copied file
Start Word, go to Word > Preferences and click on File Locations
Make sure the Startup folder is set by highlighting Startup and clicking on Modify. Navigate to Applications folder then Microsoft Office 2011:Office:Startup:Word and click Choose
Click OK and close Word.
Start EndNote and then start Word. - See more at: http://www.bartneck.de/2012/06/24/endnote-toolbar-not-visible-in-microsoft-word-2011-for-mac/#sthash.VLajtHon.dpuf
Subscribe to:
Posts (Atom)