Haotian Tang Benjie Miao

Slides:



Advertisements
Similar presentations
Android UserInterfaces Nasrullah Niazi. overView All user interface elements in an Android app are built using View and ViewGroup objects. A View is an.
Advertisements

An Introduction to Using
Introduction to Trees Chapter 6 Objectives
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
HTML DOM.  The HTML DOM defines a standard way for accessing and manipulating HTML documents.  The DOM presents an HTML document as a tree- structure.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
The switch from Microsoft Office 2003 to 2007 Microsoft Word Microsoft Excel Microsoft PowerPoint.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
XP New Perspectives on Microsoft Word 2002 Tutorial 31 Microsoft Word 2002 Tutorial 3 – Creating a Multiple-Page Report.
Video Games list lab 6  At the end of this lab you will be expected to know:  What Views, View Groups, Layouts, and Widgets are and how they relate to.
JS: Document Object Model (DOM) DOM stands for Document Object Model, and allows programmers generic access to: DOM stands for Document Object Model, and.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
Android 3: Exploring Apps and the Development Environment
Binary Search Trees Chapter 7 Objectives
DHTML.
Sets and Maps Chapter 9.
Excel Tutorial 8 Developing an Excel Application
Accessibility issues: Images and the use of ALT Text
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Copyright © 2016 Pearson Canada Inc.
Unit M Programming Web Pages with
Working in the Forms Developer Environment
Microsoft Excel.
CMSC 341 Introduction to Trees 8/3/2007 CMSC 341 Tree Intro.
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Data Visualizer.
Array, Strings and Vectors
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Data Structure and Algorithms
Unit M Programming Web Pages with
Android 11: The Calculator Assignment
Statistical Analysis with Excel
CS 367 – Introduction to Data Structures
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
CMSC 341 Introduction to Trees.
Data Structures & Algorithm Design
Lecture 18. Basics and types of Trees
Introduction With TimeCard users can tag SharePoint events with information that converts them into time sheets. This way they can report.
Creating Charts & Dashboards
Chapter 7 TREES.
Heap Chapter 9 Objectives Upon completion you will be able to:
Access Lesson 1 Understanding Access Fundamentals
An Introduction to Using
TRAINING OF FOCAL POINTS on the CountrySTAT SYSTEM based on FENIX
Statistical Analysis with Excel
Trees and Binary Trees.
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Microsoft Excel All editions of Microsoft office.
Statistical Analysis with Excel
Part-D1 Priority Queues
Chapter 6 System and Application Software
Use of Mathematics using Technology (Maltlab)
Tutorial 3 – Creating a Multiple-Page Report
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
CIS16 Application Development and Programming using Visual Basic.net
Chapter 16 Tree Implementations
CS Data Structure: Heaps.
A Robust Data Structure
Collections Not in our text.
Trees Chapter 10.
CMSC 341 Introduction to Trees CMSC 341 Tree Intro.
Sets and Maps Chapter 9.
MECH 3550 : Simulation & Visualization
Chapter 6 System and Application Software
Java: Variables, Input and Arrays
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Tree A tree is a data structure in which each node is comprised of some data as well as node pointers to child nodes
eSeries Entities By Julie Ladner
Introduction to Trees Chapter 6 Objectives
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Haotian Tang Benjie Miao 2018/8/7 Android Tex Tex Editor on Android Platform Haotian Tang Benjie Miao Feixang Xu Hanbo Wen

Inner Structure and Widgets 2018/8/7 Background UI and StructTree CONTENTS Inner Structure and Widgets To Improve

Background Why to on LaTeX Android? Difficulties 2018/8/7 Brief introduction to LaTeX Why on Android? Difficulties

2018/8/7

Background Why to on LaTeX Android? Difficulties 2018/8/7 Brief introduction to LaTeX Why on Android? Difficulties

Inner Structure and Widgets 2018/8/7 Background UI and StructTree CONTENTS Inner Structure and Widgets To Improve

to provide the visualized interface 2018/8/7 UI and StructTree Decide the key function Math formula Table Picture As to Table, we try to enable users to edit it like Excels For math formula, we want our user to insert and modify them in the most nature way to input a formula -- to write it. Fortunately, we find an API Myscript to implement this. For picture, we decide to provide the visualized interface

UI and StructTree And the primary target of the app is: 2018/8/7 UI and StructTree Decide the key function And the primary target of the app is: in the whole LaTeX project, the users are able to not contact with any coding. The app can deal with the coding process by itself.

UI and StructTree Use a Tree Structure to represent the structure. 2018/8/7 UI and StructTree Construct the data structure Use a Tree Structure to represent the structure. The different level of nodes represents the different level of sections. Representation: Left Son Right Sibling. class treeNode { int index; int parent; int firstChild = -1; //-1 means no Child int nextSibling = -1;//-1 means it is the last child of his parent(i.e. no next sibling) boolean isDeleted = false; //is Deleted means the node is deleted( but is able to be recovered) int height = 0; //The height of the node

2018/8/7 UI and StructTree Construct the data structure Thus, we can use a small amount of information to represent the whole structure tree. However, it is relatively difficult to edit, add or delete nodes or to modify the structure of the tree. Therefore, we design a series of Methods to construct the primitive operations:

2018/8/7

UI and StructTree Construct the data structure 2018/8/7 When dealing with the height of each node, we store it in every node but check and refresh it when the tree is modified. When it comes to show the whole structure in a ListView like below: A DFSTraversal is first done. And the sequence of each node indicates the order to be shown. And the height of node decides the indents before the item.

UI and StructTree User interface 2018/8/7 UI and StructTree User interface The main interface is the structure of the Essay.

UI and StructTree User interface 2018/8/7 UI and StructTree User interface simply click the certain item: see and edit one section and the content of the section will appears. long-click: the system enters the modifying mode.

Inner Structure and Widgets 2018/8/7 Background UI and StructTree CONTENTS Inner Structure and Widgets To Improve

Inner Structure and Widgets 2018/8/7 Inner Structure and Widgets Syntax analysis Adjacent sections can have only 3 relationships: 1. Father node and son node; 2. Siblings; 3. Different level but not father and son. We can perform following operations when building the struct tree. 1.Add first child to the first node. 2.Add next sibling to the first node. 3.Find LCA(Least Common Ancestor) of the first node and the second node, and add the second node as a next sibling of LCA’s first son.

Inner Structure and Widgets 2018/8/7 Inner Structure and Widgets Syntax analysis Use an Article class to store the information of the whole passage: 1.all the inner structures 2.some interfaces which can interact with inner structures 3.StructTree A global class

Inner Structure and Widgets 2018/8/7 Inner Structure and Widgets Inner structure A class ArticleComponent to store the inner information of each latex document. Three simple elements: 1.table 2.mathematical formula 3.picture Position vector

Inner Structure and Widgets 2018/8/7 Inner Structure and Widgets Inner structure Structrue of ArticleComponent Methods of ArticleComponent

Inner Structure and Widgets 2018/8/7 Inner Structure and Widgets Mathematical Formulas Hand-writing coginition: Using Myscript api. What is supported: Real time hand-writing cognition and converting into latex strings. Restore the content that is recognized last time. What to be supported:(We have been working on this but due to the time limit we haven’t succeeded): Use this Api to modify existing mathematical formulas in the document.

Inner Structure and Widgets 2018/8/7 Inner Structure and Widgets Rendering Java API JLatexmath Basically the API can only render single-line tex code. After doing some modifications to the API, it can render the whole section now. About What is Rendered

Inner Structure and Widgets 2018/8/7 Background UI and StructTree CONTENTS Inner Structure and Widgets To Improve

To improve Future works 2018/8/7 To improve Future works 1.Modify existing mathematical formulas in the document. 2.Not only simple m*n tables, support merging. 3.Able to generate the result .pdf file on the mobile.

2018/8/7 THANKS